Commit Graph

37032 Commits

Author SHA1 Message Date
Georg Brandl abecbf7f8d Use version 3.0. 2008-08-03 10:04:14 +00:00
Georg Brandl 5b318c0e07 Merged revisions 65378-65379,65430 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65378 | georg.brandl | 2008-08-01 22:04:43 +0200 (Fri, 01 Aug 2008) | 4 lines

  Add the grammar to the reference manual, since the new docs don't
  have the feature of putting all the small EBNF snippets together
  into one big file.
........
  r65379 | georg.brandl | 2008-08-01 22:13:29 +0200 (Fri, 01 Aug 2008) | 2 lines

  This should really be a comment.
........
  r65430 | georg.brandl | 2008-08-03 11:21:18 +0200 (Sun, 03 Aug 2008) | 2 lines

  #3495: use current version.
........
2008-08-03 09:47:27 +00:00
Georg Brandl cca483a740 Blocked revisions 65422 via svnmerge
........
  r65422 | antoine.pitrou | 2008-08-02 23:58:05 +0200 (Sat, 02 Aug 2008) | 1 line

  Preemptively backport the relevant parts of r65420
........
2008-08-03 09:45:51 +00:00
Brett Cannon 7f8d2a50bb Blocked revisions 65425 via svnmerge
........
  r65425 | brett.cannon | 2008-08-02 17:58:51 -0700 (Sat, 02 Aug 2008) | 3 lines

  Silence SyntaxWarning and DeprecationWarning in pydoc triggered by tuple
  unpacking in parameter lists and using callable(). Found through -3.
........
2008-08-03 00:59:47 +00:00
Brett Cannon 85e83fd326 Blocked revisions 65423 via svnmerge
........
  r65423 | brett.cannon | 2008-08-02 17:51:02 -0700 (Sat, 02 Aug 2008) | 3 lines

  Silence some SyntaxWarnings for tuple unpacking in a parameter list for
  urlparse when run under -3.
........
2008-08-03 00:51:38 +00:00
Antoine Pitrou 2f89aa6785 #2538: bytes objects can only provide read-only buffers 2008-08-02 21:02:48 +00:00
Georg Brandl 07431a302a str.join() doesn't convert arguments anymore. 2008-08-02 16:34:27 +00:00
Lars Gustäbel 0c24e8b8ca Remove the TarFileCompat class from tarfile.py. 2008-08-02 11:43:24 +00:00
Lars Gustäbel 8e746e3e2d Blocked revisions 65402 via svnmerge
........
  r65402 | lars.gustaebel | 2008-08-02 13:26:39 +0200 (Sat, 02 Aug 2008) | 5 lines

  Issue #3039: Fix TarFileCompat.writestr() which always raised an
  AttributeError since __slots__ were added to zipfile.ZipInfo in
  r46967 two years ago.
  Add a warning about the removal of TarFileCompat in Python 3.0.
........
2008-08-02 11:36:08 +00:00
Martin v. Löwis cdfae162c9 Merged revisions 65399 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65399 | martin.v.loewis | 2008-08-02 09:20:25 +0200 (Sa, 02 Aug 2008) | 3 lines

  Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap
  Tcl command objects.
........
2008-08-02 07:23:15 +00:00
Brett Cannon 59b4b170ed Blocked revisions 65395 via svnmerge
........
  r65395 | brett.cannon | 2008-08-01 20:37:50 -0700 (Fri, 01 Aug 2008) | 3 lines

  Remove a __getitem__() removal on an exception to silence a warning triggered
  under -3.
........
2008-08-02 03:38:29 +00:00
Brett Cannon eff773e7f9 Blocked revisions 65393 via svnmerge
........
  r65393 | brett.cannon | 2008-08-01 20:32:13 -0700 (Fri, 01 Aug 2008) | 2 lines

  Remove a dict.has_key() use to silence a warning when running under -3.
........
2008-08-02 03:32:49 +00:00
Brett Cannon 3ae9a5275e Blocked revisions 65391 via svnmerge
........
  r65391 | brett.cannon | 2008-08-01 20:28:42 -0700 (Fri, 01 Aug 2008) | 2 lines

  Remove a dict.has_key() use to silence a warning raised under -3.
........
2008-08-02 03:29:56 +00:00
Benjamin Peterson 7d5dd8af9b Merged revisions 65385 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65385 | benjamin.peterson | 2008-08-01 22:11:16 -0500 (Fri, 01 Aug 2008) | 1 line

  fix compile error on Windows
........
2008-08-02 03:17:02 +00:00
Brett Cannon 8dfcdda840 Blocked revisions 65387 via svnmerge
........
  r65387 | brett.cannon | 2008-08-01 20:15:20 -0700 (Fri, 01 Aug 2008) | 3 lines

  Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised
  while running under -3.
........
2008-08-02 03:16:31 +00:00
Brett Cannon c65f1266d9 Blocked revisions 65386 via svnmerge
........
  r65386 | brett.cannon | 2008-08-01 20:13:46 -0700 (Fri, 01 Aug 2008) | 3 lines

  Remove a tuple unpacking in a parameter list to suppress the SyntaxWarning with
  -3.
........
2008-08-02 03:15:58 +00:00
Benjamin Peterson a54c092fc7 Blocked revisions 65382-65383 via svnmerge
........
  r65382 | benjamin.peterson | 2008-08-01 21:57:17 -0500 (Fri, 01 Aug 2008) | 1 line

  fix indentation that caused logic bug
........
  r65383 | benjamin.peterson | 2008-08-01 22:05:11 -0500 (Fri, 01 Aug 2008) | 1 line

  revert last revision; code was right
........
2008-08-02 03:08:49 +00:00
Jesse Noller 91639e0973 Merge 65376 into 3k, fix for issue 3399 2008-08-02 02:03:58 +00:00
Georg Brandl ebd9af44c5 Fix merge conflict. 2008-08-01 16:25:12 +00:00
Benjamin Peterson 33df74ae12 Blocked revisions 65355 via svnmerge
........
  r65355 | brett.cannon | 2008-07-31 20:45:49 -0500 (Thu, 31 Jul 2008) | 2 lines

  Remove a use of callable() to silence the warning triggered under -3.
........
2008-08-01 16:19:40 +00:00
Martin v. Löwis 4fe5ed8f25 Merged revisions 65368 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65368 | martin.v.loewis | 2008-08-01 16:10:26 +0200 (Fr, 01 Aug 2008) | 3 lines

  Generate the PatternGrammar pickle during "make install".
  Fixes part of #3131.
........
2008-08-01 14:15:22 +00:00
Mark Dickinson 4aab7119b7 Merged revisions 65366 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65366 | mark.dickinson | 2008-08-01 10:13:07 +0100 (Fri, 01 Aug 2008) | 2 lines

  Tone down math.fsum warning.
........
2008-08-01 09:14:03 +00:00
Mark Dickinson aa7633ab94 Merged revisions 65258,65292,65299,65308-65309,65315,65326 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65258 | mark.dickinson | 2008-07-27 08:15:29 +0100 (Sun, 27 Jul 2008) | 4 lines

  Remove math.sum tests related to overflow, special values, and behaviour
  near the extremes of the floating-point range.  (The behaviour of math.sum
  should be regarded as undefined in these cases.)
........
  r65292 | mark.dickinson | 2008-07-29 19:45:38 +0100 (Tue, 29 Jul 2008) | 4 lines

  More modifications to tests for math.sum:  replace the Python
  version of msum by a version using a different algorithm, and
  use the new float.fromhex method to specify test results exactly.
........
  r65299 | mark.dickinson | 2008-07-30 13:01:41 +0100 (Wed, 30 Jul 2008) | 5 lines

  Fix special-value handling for math.sum.
  Also minor cleanups to the code: fix tabbing, remove
  trailing whitespace, and reformat to fit into 80
  columns.
........
  r65308 | mark.dickinson | 2008-07-30 17:20:10 +0100 (Wed, 30 Jul 2008) | 2 lines

  Rename math.sum to math.fsum
........
  r65309 | mark.dickinson | 2008-07-30 17:25:16 +0100 (Wed, 30 Jul 2008) | 3 lines

  Replace math.sum with math.fsum in a couple of comments
  that were missed by r65308
........
  r65315 | mark.dickinson | 2008-07-30 21:23:15 +0100 (Wed, 30 Jul 2008) | 2 lines

  Add note about problems with math.fsum on x86 hardware.
........
  r65326 | mark.dickinson | 2008-07-31 15:48:32 +0100 (Thu, 31 Jul 2008) | 2 lines

  Rename testSum to testFsum and move it to proper place in test_math.py
........
2008-08-01 08:16:13 +00:00
Brett Cannon c57df32319 Blocked revisions 65353 via svnmerge
........
  r65353 | brett.cannon | 2008-07-31 18:40:24 -0700 (Thu, 31 Jul 2008) | 4 lines

  Silence (Syntax|Deprecation)Warning for 'inspect'. Had to remove tuple
  unpacking in a parameter list and set some constants by hand that were pulled
  from the 'compiler' package.
........
2008-08-01 01:41:04 +00:00
Brett Cannon 77256ec057 Blocked revisions 65351 via svnmerge
........
  r65351 | brett.cannon | 2008-07-31 18:36:47 -0700 (Thu, 31 Jul 2008) | 3 lines

  Remove use of tuple unpacking and dict.has_key() so as to silence
  SyntaxWarning as triggered by -3.
........
2008-08-01 01:38:47 +00:00
Brett Cannon e631d5e8eb Blocked revisions 65349 via svnmerge
........
  r65349 | brett.cannon | 2008-07-31 18:34:05 -0700 (Thu, 31 Jul 2008) | 3 lines

  Remove assignment to True/False to silence the SyntaxWarning that is triggered
  by -3.
........
2008-08-01 01:34:40 +00:00
Brett Cannon 87668303a4 Blocked revisions 65346 via svnmerge
........
  r65346 | brett.cannon | 2008-07-31 18:21:50 -0700 (Thu, 31 Jul 2008) | 1 line

  Fix a DeprecationWarning about __getitem__() and exceptions in the 'traceback' module.
........
2008-08-01 01:23:09 +00:00
Amaury Forgeot d'Arc 7888d0803d Merged revisions 65339-65340,65342 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65339 | amaury.forgeotdarc | 2008-07-31 23:28:03 +0200 (jeu., 31 juil. 2008) | 5 lines

  #3479: unichr(2**32) used to return u'\x00'.
  The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int.

  (why doesn't gcc issue a truncation warning in this case?)
........
  r65340 | amaury.forgeotdarc | 2008-07-31 23:35:03 +0200 (jeu., 31 juil. 2008) | 2 lines

  Remove a dummy test that was checked in by mistake
........
  r65342 | amaury.forgeotdarc | 2008-08-01 01:39:05 +0200 (ven., 01 août 2008) | 8 lines

  Correct a crash when two successive unicode allocations fail with a MemoryError:
  the freelist contained half-initialized objects with freed pointers.

  The comment
  /* XXX UNREF/NEWREF interface should be more symmetrical */
  was copied from tupleobject.c, and appears in some other places.
  I sign the petition.
........
2008-08-01 01:06:32 +00:00
Amaury Forgeot d'Arc e2e36ba696 posix.fdopen does not exists any more; and os.fdopen exists on all platforms.
Move tests from test_posix to test_os.
2008-08-01 00:14:22 +00:00
Amaury Forgeot d'Arc bdbddf8a82 #2491: os.fdopen() is now almost an alias to the builtin open(), and accepts the same parameters.
It just checks that the first argument is a file descriptor.
2008-08-01 00:06:49 +00:00
Amaury Forgeot d'Arc e19cadb427 Correct one of the "MemoryError oddities":
the traceback would grow each time a MemoryError is raised.
2008-07-31 22:56:02 +00:00
Benjamin Peterson a986dfa927 Merged revisions 65293 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65293 | benjamin.peterson | 2008-07-29 14:28:49 -0500 (Tue, 29 Jul 2008) | 1 line

  the from __future__ import  with_statement isn't needed in 2.6
........
2008-07-31 21:10:28 +00:00
Benjamin Peterson d18de0e28b Merged revisions 65259,65263,65296,65307,65321 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65259 | benjamin.peterson | 2008-07-27 10:22:14 -0500 (Sun, 27 Jul 2008) | 1 line

  clarify Popen argument
........
  r65263 | andrew.kuchling | 2008-07-28 12:04:48 -0500 (Mon, 28 Jul 2008) | 1 line

  Clarify wording
........
  r65296 | raymond.hettinger | 2008-07-30 02:27:30 -0500 (Wed, 30 Jul 2008) | 1 line

  Neaten-up the itertools recipes.
........
  r65307 | benjamin.peterson | 2008-07-30 08:46:53 -0500 (Wed, 30 Jul 2008) | 1 line

  getrandombits is actually getrandbits
........
  r65321 | raymond.hettinger | 2008-07-30 20:19:50 -0500 (Wed, 30 Jul 2008) | 4 lines

  Alter recipe to show how to call izip_longest() with
  both a keyword argument and star arguments.
........
2008-07-31 20:21:46 +00:00
Benjamin Peterson f17ff4e1d6 Merged revisions 65257 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65257 | mark.dickinson | 2008-07-27 01:39:07 -0500 (Sun, 27 Jul 2008) | 3 lines

  Issue #3449: Update decimal module to use most recent specification
  (v. 1.68) and tests (v. 2.58) from IBM.
........
2008-07-31 16:32:12 +00:00
Benjamin Peterson d63137159b Merged revisions 65209-65216,65225-65226,65233,65239,65246-65247,65255-65256 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65209 | raymond.hettinger | 2008-07-23 19:08:18 -0500 (Wed, 23 Jul 2008) | 1 line

  Finish-up the partial conversion from int to Py_ssize_t for deque indices and length.
........
  r65210 | raymond.hettinger | 2008-07-23 19:53:49 -0500 (Wed, 23 Jul 2008) | 1 line

  Parse to the correct datatype.
........
  r65211 | benjamin.peterson | 2008-07-23 21:27:46 -0500 (Wed, 23 Jul 2008) | 1 line

  fix spacing
........
  r65212 | benjamin.peterson | 2008-07-23 21:31:28 -0500 (Wed, 23 Jul 2008) | 1 line

  fix markup
........
  r65213 | benjamin.peterson | 2008-07-23 21:45:37 -0500 (Wed, 23 Jul 2008) | 1 line

  add some documentation for 2to3
........
  r65214 | raymond.hettinger | 2008-07-24 00:38:48 -0500 (Thu, 24 Jul 2008) | 1 line

  Finish conversion from int to Py_ssize_t.
........
  r65215 | raymond.hettinger | 2008-07-24 02:04:55 -0500 (Thu, 24 Jul 2008) | 1 line

  Convert from long to Py_ssize_t.
........
  r65216 | georg.brandl | 2008-07-24 02:09:21 -0500 (Thu, 24 Jul 2008) | 2 lines

  Fix indentation.
........
  r65225 | benjamin.peterson | 2008-07-25 11:55:37 -0500 (Fri, 25 Jul 2008) | 1 line

  teach .bzrignore about doc tools
........
  r65226 | benjamin.peterson | 2008-07-25 12:02:11 -0500 (Fri, 25 Jul 2008) | 1 line

  document default value for fillvalue
........
  r65233 | raymond.hettinger | 2008-07-25 13:43:33 -0500 (Fri, 25 Jul 2008) | 1 line

  Issue 1592:  Better error reporting for operations on closed shelves.
........
  r65239 | benjamin.peterson | 2008-07-25 16:59:53 -0500 (Fri, 25 Jul 2008) | 1 line

  fix indentation
........
  r65246 | andrew.kuchling | 2008-07-26 08:08:19 -0500 (Sat, 26 Jul 2008) | 1 line

  This sentence continues to bug me; rewrite it for the second time
........
  r65247 | andrew.kuchling | 2008-07-26 08:09:06 -0500 (Sat, 26 Jul 2008) | 1 line

  Remove extra words
........
  r65255 | skip.montanaro | 2008-07-26 19:49:02 -0500 (Sat, 26 Jul 2008) | 3 lines

  Close issue 3437 - missing state change when Allow lines are processed.
  Adds test cases which use Allow: as well.
........
  r65256 | skip.montanaro | 2008-07-26 19:50:41 -0500 (Sat, 26 Jul 2008) | 2 lines

  note robotparser bug fix.
........
2008-07-31 16:23:04 +00:00
Benjamin Peterson 76b09ca89a block all the bsddb revisions. Jesus has said he is maintaining bsddb for 3.0 separately 2008-07-31 15:55:58 +00:00
Benjamin Peterson ca0c8ab97d Merged revisions 65328 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65328 | benjamin.peterson | 2008-07-31 10:15:45 -0500 (Thu, 31 Jul 2008) | 1 line

  remove usage of MacOS from Tkinter
........
2008-07-31 15:20:45 +00:00
Benjamin Peterson 4ae19463aa update the struct documentation to refer to bytes
patch from Matt Giuca #3478
2008-07-31 15:03:40 +00:00
Brett Cannon 9404327010 Blocked revisions 65323 via svnmerge
........
  r65323 | brett.cannon | 2008-07-30 20:00:53 -0700 (Wed, 30 Jul 2008) | 1 line

  Backport test.support.fcmp() from 3.0 to silence -3 warnings.
........
2008-07-31 03:01:40 +00:00
Benjamin Peterson 69c88f74a3 Merged revisions 65320 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65320 | amaury.forgeotdarc | 2008-07-30 19:42:16 -0500 (Wed, 30 Jul 2008) | 3 lines

  #2542: now that issubclass() may call arbitrary code,
  make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there.
........
2008-07-31 01:47:08 +00:00
Benjamin Peterson ebaf75dc0b Blocked revisions 65318 via svnmerge
........
  r65318 | benjamin.peterson | 2008-07-30 18:49:28 -0500 (Wed, 30 Jul 2008) | 1 line

  I mess up again; BufferError inherits StandardError
........
2008-07-30 23:51:05 +00:00
Benjamin Peterson b7d59dad89 Blocked revisions 65312 via svnmerge
........
  r65312 | benjamin.peterson | 2008-07-30 14:35:27 -0500 (Wed, 30 Jul 2008) | 1 line

  add BufferError to the exception hieracrchy
........
2008-07-30 19:49:33 +00:00
Benjamin Peterson 4818a44dbe Blocked revisions 65310 via svnmerge
........
  r65310 | benjamin.peterson | 2008-07-30 12:45:10 -0500 (Wed, 30 Jul 2008) | 1 line

  backport r64751
........
2008-07-30 17:46:47 +00:00
Raymond Hettinger 2e73ffcf7b Fix-up recipe with a syntax error (as discussed on python-dev). 2008-07-30 07:45:01 +00:00
Raymond Hettinger f5a2e47ad3 Neaten-up the itertools recipes. 2008-07-30 07:37:37 +00:00
Benjamin Peterson fbf66bd617 a much cleaner fix from Antoine 2008-07-29 15:55:50 +00:00
Benjamin Peterson f63e343c39 uhh. __builtins__ is a module in __main__ and a dict elsewhere 2008-07-29 15:53:12 +00:00
Benjamin Peterson 638c722228 make sure doctest doesn't pollute __builtins__
This was causing test_builtin to fail after the decimal doctests were run
see #3462
2008-07-29 15:35:08 +00:00
Benjamin Peterson e14039cfca Blocked revisions 65266 via svnmerge
........
  r65266 | benjamin.peterson | 2008-07-28 18:35:27 -0500 (Mon, 28 Jul 2008) | 1 line

  backport r65264
........
2008-07-28 23:36:42 +00:00
Antoine Pitrou c66f909f43 #2523: binary buffered reading is quadratic 2008-07-28 19:46:11 +00:00