]> granicus.if.org Git - python/log
python
16 years agoexec won't take file objects anymore
Benjamin Peterson [Tue, 11 Nov 2008 21:43:42 +0000 (21:43 +0000)]
exec won't take file objects anymore

16 years ago#4298: pickle.load() can segfault on invalid or truncated input.
Amaury Forgeot d'Arc [Tue, 11 Nov 2008 20:05:06 +0000 (20:05 +0000)]
#4298: pickle.load() can segfault on invalid or truncated input.

Patch and test by Hirokazu Yamamoto.

16 years agoFixed a compiler warning
Christian Heimes [Tue, 11 Nov 2008 12:53:39 +0000 (12:53 +0000)]
Fixed a compiler warning

16 years agoMerged revisions 67180 via svnmerge from
Benjamin Peterson [Mon, 10 Nov 2008 22:21:33 +0000 (22:21 +0000)]
Merged revisions 67180 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r67180 | benjamin.peterson | 2008-11-10 16:11:12 -0600 (Mon, 10 Nov 2008) | 29 lines

  Merged revisions 66985,67170,67173,67177-67179 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r66985 | benjamin.peterson | 2008-10-20 16:43:46 -0500 (Mon, 20 Oct 2008) | 1 line

    no need to use nested try, except, finally
  ........
    r67170 | benjamin.peterson | 2008-11-08 12:28:31 -0600 (Sat, 08 Nov 2008) | 1 line

    fix #4271: fix_imports didn't recognize imports with parenthesis (ie from x import (a, b))
  ........
    r67173 | benjamin.peterson | 2008-11-08 17:42:08 -0600 (Sat, 08 Nov 2008) | 1 line

    consolidate test
  ........
    r67177 | benjamin.peterson | 2008-11-09 21:52:52 -0600 (Sun, 09 Nov 2008) | 1 line

    let the metclass fixer handle complex assignments in the class body gracefully
  ........
    r67178 | benjamin.peterson | 2008-11-10 15:26:43 -0600 (Mon, 10 Nov 2008) | 1 line

    the metaclass fixers shouldn't die when bases are not a simple name
  ........
    r67179 | benjamin.peterson | 2008-11-10 15:29:58 -0600 (Mon, 10 Nov 2008) | 1 line

    allow the fix_import pattern to catch from imports with parenthesis
  ........
................

16 years agoupdate string formatting grammar
Benjamin Peterson [Sun, 9 Nov 2008 01:43:02 +0000 (01:43 +0000)]
update string formatting grammar

16 years agoMerged revisions 67171 via svnmerge from
Benjamin Peterson [Sat, 8 Nov 2008 19:56:21 +0000 (19:56 +0000)]
Merged revisions 67171 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67171 | benjamin.peterson | 2008-11-08 12:38:54 -0600 (Sat, 08 Nov 2008) | 4 lines

  check for assignment to __debug__ during AST generation

  Also, give assignment to None a better error message
........

16 years agofix the socketserver demo code for py3k
Benjamin Peterson [Sat, 8 Nov 2008 17:24:34 +0000 (17:24 +0000)]
fix the socketserver demo code for py3k

#4275 Thanks to Don MacMillen

16 years agoBlocked revisions 67166 via svnmerge
Benjamin Peterson [Sat, 8 Nov 2008 17:08:32 +0000 (17:08 +0000)]
Blocked revisions 67166 via svnmerge

........
  r67166 | benjamin.peterson | 2008-11-08 11:07:06 -0600 (Sat, 08 Nov 2008) | 1 line

  clarify what was added
........

16 years agoBlocked revisions 67163 via svnmerge
Benjamin Peterson [Sat, 8 Nov 2008 17:06:18 +0000 (17:06 +0000)]
Blocked revisions 67163 via svnmerge

........
  r67163 | benjamin.peterson | 2008-11-08 11:04:18 -0600 (Sat, 08 Nov 2008) | 1 line

  move context clue to versionchanged tag
........

16 years agoMerged revisions 67162 via svnmerge from
Benjamin Peterson [Sat, 8 Nov 2008 17:05:00 +0000 (17:05 +0000)]
Merged revisions 67162 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67162 | benjamin.peterson | 2008-11-08 10:55:33 -0600 (Sat, 08 Nov 2008) | 1 line

  a few compile() and ast doc improvements
........

16 years agocompile can also produce AST
Benjamin Peterson [Sat, 8 Nov 2008 16:54:05 +0000 (16:54 +0000)]
compile can also produce AST

16 years ago#4283: fix left-over iteritems() in distutils.
Georg Brandl [Sat, 8 Nov 2008 15:15:57 +0000 (15:15 +0000)]
#4283: fix left-over iteritems() in distutils.

16 years agoMerged revisions 67149 via svnmerge from
Martin v. Löwis [Fri, 7 Nov 2008 18:54:51 +0000 (18:54 +0000)]
Merged revisions 67149 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67149 | martin.v.loewis | 2008-11-07 19:51:50 +0100 (Fr, 07 Nov 2008) | 1 line

  Issue #1656675: Register a drop handler for .py* files on Windows.
........

16 years agoMerged revisions 67117-67119,67123-67124,67143 via svnmerge from
Georg Brandl [Fri, 7 Nov 2008 09:39:56 +0000 (09:39 +0000)]
Merged revisions 67117-67119,67123-67124,67143 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67117 | georg.brandl | 2008-11-06 11:17:58 +0100 (Thu, 06 Nov 2008) | 2 lines

  #4268: Use correct module for two toplevel functions.
........
  r67118 | georg.brandl | 2008-11-06 11:19:11 +0100 (Thu, 06 Nov 2008) | 2 lines

  #4267: small fixes in sqlite3 docs.
........
  r67119 | georg.brandl | 2008-11-06 11:20:49 +0100 (Thu, 06 Nov 2008) | 2 lines

  #4245: move Thread section to the top.
........
  r67123 | georg.brandl | 2008-11-06 19:49:15 +0100 (Thu, 06 Nov 2008) | 2 lines

  #4247: add "pass" examples to tutorial.
........
  r67124 | andrew.kuchling | 2008-11-06 20:23:02 +0100 (Thu, 06 Nov 2008) | 1 line

  Fix grammar error; reword two paragraphs
........
  r67143 | georg.brandl | 2008-11-07 09:27:39 +0100 (Fri, 07 Nov 2008) | 2 lines

  Fix syntax.
........

16 years agoname the release
Benjamin Peterson [Fri, 7 Nov 2008 03:51:42 +0000 (03:51 +0000)]
name the release

16 years agopost release cleanup
Barry Warsaw [Fri, 7 Nov 2008 03:46:33 +0000 (03:46 +0000)]
post release cleanup

16 years agoRetagging.
Barry Warsaw [Fri, 7 Nov 2008 03:09:16 +0000 (03:09 +0000)]
Retagging.

16 years agoDe-tagging v3.0rc2
Barry Warsaw [Fri, 7 Nov 2008 03:08:42 +0000 (03:08 +0000)]
De-tagging

16 years agoA totally crappy workaround for issue 4266, but this allows me to build the
Barry Warsaw [Fri, 7 Nov 2008 03:06:24 +0000 (03:06 +0000)]
A totally crappy workaround for issue 4266, but this allows me to build the
release.

16 years agoTagging
Barry Warsaw [Fri, 7 Nov 2008 01:40:25 +0000 (01:40 +0000)]
Tagging

16 years agoRemoving old tag.
Barry Warsaw [Fri, 7 Nov 2008 01:39:27 +0000 (01:39 +0000)]
Removing old tag.

16 years agoupdate
Barry Warsaw [Fri, 7 Nov 2008 01:38:26 +0000 (01:38 +0000)]
update

16 years agoMerged revisions 67125 via svnmerge from
Martin v. Löwis [Thu, 6 Nov 2008 19:46:56 +0000 (19:46 +0000)]
Merged revisions 67125 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67125 | martin.v.loewis | 2008-11-06 20:46:03 +0100 (Do, 06 Nov 2008) | 2 lines

  Stop including fake manifest file in DLLs directory.
........

16 years agoMerged revisions 67120 via svnmerge from
Martin v. Löwis [Thu, 6 Nov 2008 17:30:03 +0000 (17:30 +0000)]
Merged revisions 67120 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67120 | martin.v.loewis | 2008-11-06 17:43:00 +0100 (Do, 06 Nov 2008) | 2 lines

  Issue #4120: Exclude manifest from extension modules in VS2008.
........

16 years agoTagging release.
Barry Warsaw [Thu, 6 Nov 2008 03:38:33 +0000 (03:38 +0000)]
Tagging release.

16 years agoBumping to 3.0rc2.
Barry Warsaw [Thu, 6 Nov 2008 03:29:32 +0000 (03:29 +0000)]
Bumping to 3.0rc2.

16 years agoperiod
Benjamin Peterson [Wed, 5 Nov 2008 22:49:09 +0000 (22:49 +0000)]
period

16 years agofix #4211: the __path__ of a frozen package should be a list.
Benjamin Peterson [Wed, 5 Nov 2008 22:48:33 +0000 (22:48 +0000)]
fix #4211: the __path__ of a frozen package should be a list.

Patch by Brett Cannon, review by Christian Heimes.

16 years agoMerged revisions 67089,67091,67101 via svnmerge from
Benjamin Peterson [Wed, 5 Nov 2008 21:42:45 +0000 (21:42 +0000)]
Merged revisions 67089,67091,67101 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67089 | benjamin.peterson | 2008-11-03 14:43:20 -0600 (Mon, 03 Nov 2008) | 1 line

  clarify by splitting into multiple paragraphs
........
  r67091 | benjamin.peterson | 2008-11-03 16:34:57 -0600 (Mon, 03 Nov 2008) | 1 line

  move a FileIO test to test_fileio
........
  r67101 | georg.brandl | 2008-11-04 14:49:35 -0600 (Tue, 04 Nov 2008) | 2 lines

  #4167: fix markup glitches.
........

16 years agoBlocked revisions 66878 via svnmerge
Benjamin Peterson [Wed, 5 Nov 2008 21:34:59 +0000 (21:34 +0000)]
Blocked revisions 66878 via svnmerge

........
  r66878 | benjamin.peterson | 2008-10-11 12:25:36 -0500 (Sat, 11 Oct 2008) | 4 lines

  give poplib a real test suite

  #4088 from Giampaolo Rodola'x
........

16 years agoFixed issue #3727: poplib module broken by str to unicode conversion
Christian Heimes [Wed, 5 Nov 2008 19:48:27 +0000 (19:48 +0000)]
Fixed issue #3727: poplib module broken by str to unicode conversion
Victor strikes again! Assisted by Barry

16 years agoIssue #3714: nntplib module broken by str to unicode conversion
Christian Heimes [Wed, 5 Nov 2008 19:44:21 +0000 (19:44 +0000)]
Issue #3714: nntplib module broken by str to unicode conversion
Patch by Victor, Reviewed by Barry

16 years agoIssue #1210: Fixed imaplib
Christian Heimes [Wed, 5 Nov 2008 19:39:50 +0000 (19:39 +0000)]
Issue #1210: Fixed imaplib
Patch by Victor Stinner, reviewed by Barry Warsaw.

16 years agoFixed issue #4233.
Christian Heimes [Wed, 5 Nov 2008 19:30:32 +0000 (19:30 +0000)]
Fixed issue #4233.
Changed semantic of _fileio.FileIO's close()  method on file objects with closefd=False. The file descriptor is still kept open but the file object behaves like a closed file. The FileIO  object also got a new readonly attribute closefd.
Approved by Barry

16 years agoMerged revisions 67098 via svnmerge from
Martin v. Löwis [Tue, 4 Nov 2008 20:45:29 +0000 (20:45 +0000)]
Merged revisions 67098 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67098 | martin.v.loewis | 2008-11-04 21:40:09 +0100 (Di, 04 Nov 2008) | 2 lines

  Issue #4204: Fixed module build errors on FreeBSD 4.
........

16 years agoIssue #3774: Fixed an error when create a Tkinter menu item without command
Hirokazu Yamamoto [Tue, 4 Nov 2008 06:26:27 +0000 (06:26 +0000)]
Issue #3774: Fixed an error when create a Tkinter menu item without command
and then remove it. Written by Guilherme Polo (gpolo). Ported r67082.

16 years agoSorry, r67092 is commit miss....
Hirokazu Yamamoto [Tue, 4 Nov 2008 00:35:10 +0000 (00:35 +0000)]
Sorry, r67092 is commit miss....

16 years agoBlocked revisions 67002 via svnmerge
Hirokazu Yamamoto [Tue, 4 Nov 2008 00:31:31 +0000 (00:31 +0000)]
Blocked revisions 67002 via svnmerge

........
  r67002 | hirokazu.yamamoto | 2008-10-23 09:37:33 +0900 | 1 line

  Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
........

16 years agofix test_descr
Benjamin Peterson [Mon, 3 Nov 2008 21:29:09 +0000 (21:29 +0000)]
fix test_descr

16 years agoMerged revisions 67028,67040,67044,67046,67052,67065,67070,67077,67082 via svnmerge...
Benjamin Peterson [Mon, 3 Nov 2008 20:31:38 +0000 (20:31 +0000)]
Merged revisions 67028,67040,67044,67046,67052,67065,67070,67077,67082 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67028 | benjamin.peterson | 2008-10-25 18:27:07 -0500 (Sat, 25 Oct 2008) | 1 line

  don't use a catch-all
........
  r67040 | armin.rigo | 2008-10-28 12:01:21 -0500 (Tue, 28 Oct 2008) | 5 lines

  Fix one of the tests: it relied on being present in an "output test" in
  order to actually test what it was supposed to test, i.e. that the code
  in the __del__ method did not crash.  Use instead the new helper
  test_support.captured_output().
........
  r67044 | amaury.forgeotdarc | 2008-10-29 18:15:57 -0500 (Wed, 29 Oct 2008) | 3 lines

  Correct error message in io.open():
  closefd=True is the only accepted value with a file name.
........
  r67046 | thomas.heller | 2008-10-30 15:18:13 -0500 (Thu, 30 Oct 2008) | 2 lines

  Fixed a modulefinder crash on certain relative imports.
........
  r67052 | christian.heimes | 2008-10-30 16:26:15 -0500 (Thu, 30 Oct 2008) | 1 line

  Issue #4237: io.FileIO() was raising invalid warnings caused by insufficient initialization of PyFileIOObject struct members.
........
  r67065 | benjamin.peterson | 2008-10-30 18:59:18 -0500 (Thu, 30 Oct 2008) | 1 line

  move unprefixed error into .c file
........
  r67070 | benjamin.peterson | 2008-10-31 15:41:44 -0500 (Fri, 31 Oct 2008) | 1 line

  rephrase has_key doc
........
  r67077 | benjamin.peterson | 2008-11-03 09:14:51 -0600 (Mon, 03 Nov 2008) | 1 line

  #4048 make the parser module accept relative imports as valid
........
  r67082 | hirokazu.yamamoto | 2008-11-03 12:03:06 -0600 (Mon, 03 Nov 2008) | 2 lines

  Issue #3774: Fixed an error when create a Tkinter menu item without command
  and then remove it. Written by Guilherme Polo (gpolo).
........

16 years agoCorrect the pickle test, broken since r67059:
Amaury Forgeot d'Arc [Fri, 31 Oct 2008 17:52:47 +0000 (17:52 +0000)]
Correct the pickle test, broken since r67059:
the python version of pickle is still more tolerant than the C one.

16 years agoMerged revisions 67066 via svnmerge from
Benjamin Peterson [Fri, 31 Oct 2008 02:28:05 +0000 (02:28 +0000)]
Merged revisions 67066 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67066 | benjamin.peterson | 2008-10-30 21:16:05 -0500 (Thu, 30 Oct 2008) | 5 lines

  make sure the parser flags and passed onto the compiler

  This fixes "from __future__ import unicode_literals" in an exec statment
  See #4225
........

16 years ago#3626: On cygwin, starting "python z" would not display any error message:
Amaury Forgeot d'Arc [Thu, 30 Oct 2008 23:03:32 +0000 (23:03 +0000)]
#3626: On cygwin, starting "python z" would not display any error message:

printf("%ls") fails if the wide string is 1 char long :-(

16 years agoBlocked revisions 67060-67061 via svnmerge
Benjamin Peterson [Thu, 30 Oct 2008 22:48:10 +0000 (22:48 +0000)]
Blocked revisions 67060-67061 via svnmerge

........
  r67060 | benjamin.peterson | 2008-10-30 17:39:25 -0500 (Thu, 30 Oct 2008) | 1 line

  backport bin() documentation
........
  r67061 | benjamin.peterson | 2008-10-30 17:44:18 -0500 (Thu, 30 Oct 2008) | 1 line

  finish backporting binary literals and new octal literals docs
........

16 years agoMerged revisions 67049 via svnmerge from
Amaury Forgeot d'Arc [Thu, 30 Oct 2008 22:25:31 +0000 (22:25 +0000)]
Merged revisions 67049 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67049 | amaury.forgeotdarc | 2008-10-30 22:18:34 +0100 (jeu., 30 oct. 2008) | 8 lines

  Issue #4176: Pickle would crash the interpreter when a __reduce__ function
  does not return an iterator for the 4th and 5th items.
  (sequence-like and mapping-like state)

  A list is not an iterator...

  Will backport to 2.6 and 2.5.
........

16 years agoIssue 3723: Fixed initialization of subinterpreters
Christian Heimes [Thu, 30 Oct 2008 21:48:26 +0000 (21:48 +0000)]
Issue 3723: Fixed initialization of subinterpreters
The patch fixes several issues with Py_NewInterpreter as well as the demo for multiple subinterpreters.
Most of the patch was written by MvL with help from Benjamin, Amaury and me. Graham Dumpleton has verified that this patch fixes an issue with mod_wsgi.

16 years agoIssue #4213: The file system encoding is now normalized by the codec subsystem, for...
Christian Heimes [Thu, 30 Oct 2008 21:40:04 +0000 (21:40 +0000)]
Issue #4213: The file system encoding is now normalized by the codec subsystem, for example UTF-8 is turned into utf-8.
Patch created by Victor and reviewed by me. The change is required for proper initialization of subinterpreters.

16 years agoIssue #4200: Changed the atexit module to store its state in its PyModuleDef atexitmo...
Christian Heimes [Thu, 30 Oct 2008 21:34:02 +0000 (21:34 +0000)]
Issue #4200: Changed the atexit module to store its state in its PyModuleDef atexitmodule. This fixes a bug with multiple subinterpeters. The bug was found by Graham Dumpletom during his work on a 3.0 port of mod_wsgi. The patch has been reviewed by Benjamin.

16 years agoIssue #4237: io.FileIO() was raising invalid warnings caused by insufficient initiali...
Christian Heimes [Thu, 30 Oct 2008 21:23:35 +0000 (21:23 +0000)]
Issue #4237: io.FileIO() was raising invalid warnings caused by insufficient initialization of PyFileIOObject struct members.

16 years agoIssue #4237: io.FileIO() was raising invalid warnings caused by insufficient initiali...
Christian Heimes [Thu, 30 Oct 2008 21:22:55 +0000 (21:22 +0000)]
Issue #4237: io.FileIO() was raising invalid warnings caused by insufficient initialization of PyFileIOObject struct members.

16 years ago#4170: Fix segfault when pickling a defauldict object.
Amaury Forgeot d'Arc [Thu, 30 Oct 2008 20:58:42 +0000 (20:58 +0000)]
#4170: Fix segfault when pickling a defauldict object.

The 2.x dict.iteritems() returns an iterator,
whereas the 3.0 dict.items() returns a "view",
which is iterable, but not an iterator with its __next__ method.

Patch by Hirokazu Yamamoto.

16 years agoImprove pickle's documentation.
Alexandre Vassalotti [Wed, 29 Oct 2008 23:32:33 +0000 (23:32 +0000)]
Improve pickle's documentation.

Deprecate the previously undocumented Pickler.fast attribute.
Revamp the "Pickling Class Instances" section.
Reorganize sections and subsections.
Clean up TextReader example.

16 years agofix some more print statements
Benjamin Peterson [Wed, 29 Oct 2008 20:35:35 +0000 (20:35 +0000)]
fix some more print statements

16 years agoBlocked revisions 67041 via svnmerge
Benjamin Peterson [Wed, 29 Oct 2008 20:34:36 +0000 (20:34 +0000)]
Blocked revisions 67041 via svnmerge

........
  r67041 | benjamin.peterson | 2008-10-29 15:33:00 -0500 (Wed, 29 Oct 2008) | 1 line

  mention the version gettempdir() was added
........

16 years agoMerged revisions 67030-67031 via svnmerge from
Benjamin Peterson [Sun, 26 Oct 2008 20:58:53 +0000 (20:58 +0000)]
Merged revisions 67030-67031 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67030 | benjamin.peterson | 2008-10-26 15:21:13 -0500 (Sun, 26 Oct 2008) | 1 line

  fix __future__ imports when multiple features are given
........
  r67031 | benjamin.peterson | 2008-10-26 15:33:19 -0500 (Sun, 26 Oct 2008) | 1 line

  add forgotten test for r67030
........

16 years agodefault source encoding is now utf-8
Benjamin Peterson [Sat, 25 Oct 2008 23:43:00 +0000 (23:43 +0000)]
default source encoding is now utf-8

16 years agoRemove a confusing statement in Pickler's docstring.
Alexandre Vassalotti [Sat, 25 Oct 2008 17:12:52 +0000 (17:12 +0000)]
Remove a confusing statement in Pickler's docstring.

Pickler does not read anything from the given file.

16 years agoFix a grammar mistake in a comment.
Alexandre Vassalotti [Sat, 25 Oct 2008 17:10:07 +0000 (17:10 +0000)]
Fix a grammar mistake in a comment.

16 years agoMerged revisions 66974,66977,66984,66989,66992,66994-66996,66998-67000,67007,67015...
Benjamin Peterson [Sat, 25 Oct 2008 15:49:17 +0000 (15:49 +0000)]
Merged revisions 66974,66977,66984,66989,66992,66994-66996,66998-67000,67007,67015 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66974 | benjamin.peterson | 2008-10-19 08:59:01 -0500 (Sun, 19 Oct 2008) | 1 line

  fix compiler warning
........
  r66977 | benjamin.peterson | 2008-10-19 14:39:16 -0500 (Sun, 19 Oct 2008) | 1 line

  mention -n
........
  r66984 | armin.ronacher | 2008-10-20 16:29:08 -0500 (Mon, 20 Oct 2008) | 3 lines

  Fixed #4062, added import for _ast.__version__ to ast to match the documented behavior.
........
  r66989 | matthias.klose | 2008-10-21 04:12:25 -0500 (Tue, 21 Oct 2008) | 2 lines

  - install versioned manpage
........
  r66992 | benjamin.peterson | 2008-10-21 15:51:13 -0500 (Tue, 21 Oct 2008) | 1 line

  make sure to call iteritems()
........
  r66994 | amaury.forgeotdarc | 2008-10-21 17:01:38 -0500 (Tue, 21 Oct 2008) | 6 lines

  #4157 move two test functions out of platform.py.

  Turn them into unit tests, and correct an obvious typo:
      (("a", "b") ("c", "d") ("e", "f"))
  compiles even with the missing commas, but does not execute very well...
........
  r66995 | benjamin.peterson | 2008-10-21 17:18:29 -0500 (Tue, 21 Oct 2008) | 1 line

  return ArgInfo from inspect.getargvalues #4092
........
  r66996 | benjamin.peterson | 2008-10-21 17:20:31 -0500 (Tue, 21 Oct 2008) | 1 line

  add NEWs note for last change
........
  r66998 | benjamin.peterson | 2008-10-22 15:57:43 -0500 (Wed, 22 Oct 2008) | 1 line

  fix a few typos
........
  r66999 | benjamin.peterson | 2008-10-22 16:05:30 -0500 (Wed, 22 Oct 2008) | 1 line

  and another typo...
........
  r67000 | benjamin.peterson | 2008-10-22 16:16:34 -0500 (Wed, 22 Oct 2008) | 1 line

  fix #4150: pdb's up command didn't work for generators in post-mortem
........
  r67007 | benjamin.peterson | 2008-10-23 16:43:48 -0500 (Thu, 23 Oct 2008) | 1 line

  only nonempty __slots__ don't work
........
  r67015 | georg.brandl | 2008-10-25 02:00:52 -0500 (Sat, 25 Oct 2008) | 2 lines

  Typo fix.
........

16 years agoBlocked revisions 67013 via svnmerge
Benjamin Peterson [Sat, 25 Oct 2008 02:56:18 +0000 (02:56 +0000)]
Blocked revisions 67013 via svnmerge

........
  r67013 | benjamin.peterson | 2008-10-24 21:53:28 -0500 (Fri, 24 Oct 2008) | 1 line

  give a py3k warning when 'nonlocal' is used as a variable name
........

16 years agoupdate Python-ast.c
Benjamin Peterson [Fri, 24 Oct 2008 23:11:02 +0000 (23:11 +0000)]
update Python-ast.c

16 years agofix some py3k doc nits
Benjamin Peterson [Fri, 24 Oct 2008 22:28:58 +0000 (22:28 +0000)]
fix some py3k doc nits

16 years agoadd grammar tests for nonlocal
Benjamin Peterson [Fri, 24 Oct 2008 22:16:39 +0000 (22:16 +0000)]
add grammar tests for nonlocal

16 years agoMore improvements to pickle's documentation.
Alexandre Vassalotti [Fri, 24 Oct 2008 01:32:40 +0000 (01:32 +0000)]
More improvements to pickle's documentation.
Add "Restricting Globals" section.
Remove useless 'verbose' flag in the example dbpickle.py.

16 years agoMerged revisions 67005 via svnmerge from
Walter Dörwald [Thu, 23 Oct 2008 13:21:33 +0000 (13:21 +0000)]
Merged revisions 67005 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67005 | walter.doerwald | 2008-10-23 15:11:39 +0200 (Do, 23 Okt 2008) | 2 lines

  Use the correct names of the stateless codec functions (Fixes issue 4178).
........

16 years agoBlocked revisions 67002 via svnmerge
Hirokazu Yamamoto [Thu, 23 Oct 2008 00:51:26 +0000 (00:51 +0000)]
Blocked revisions 67002 via svnmerge

........
  r67002 | hirokazu.yamamoto | 2008-10-23 09:37:33 +0900 | 1 line

  Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
........

16 years agoIssue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
Hirokazu Yamamoto [Thu, 23 Oct 2008 00:38:15 +0000 (00:38 +0000)]
Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.
Reviewed by Benjamin Peterson.

16 years agodocument 'y(#)' format codes for Py_BuildValue
Benjamin Peterson [Tue, 21 Oct 2008 21:10:07 +0000 (21:10 +0000)]
document 'y(#)' format codes for Py_BuildValue

16 years agomake struct static
Benjamin Peterson [Mon, 20 Oct 2008 21:04:06 +0000 (21:04 +0000)]
make struct static

16 years agodocument changes to metaclasses
Benjamin Peterson [Sun, 19 Oct 2008 21:29:05 +0000 (21:29 +0000)]
document changes to metaclasses

16 years agorestore compilation on OpenBSD #4146
Benjamin Peterson [Sun, 19 Oct 2008 14:15:00 +0000 (14:15 +0000)]
restore compilation on OpenBSD #4146

16 years agoMerged revisions 66887,66891,66902-66903,66905-66906,66911-66913,66922,66927-66928...
Benjamin Peterson [Sun, 19 Oct 2008 14:07:49 +0000 (14:07 +0000)]
Merged revisions 66887,66891,66902-66903,66905-66906,66911-66913,66922,66927-66928,66936,66939-66940,66962,66964,66973 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r66887 | benjamin.peterson | 2008-10-13 16:51:40 -0500 (Mon, 13 Oct 2008) | 1 line

  document how to disable fixers
................
  r66891 | amaury.forgeotdarc | 2008-10-14 16:47:22 -0500 (Tue, 14 Oct 2008) | 5 lines

  #4122: On Windows, Py_UNICODE_ISSPACE cannot be used in an extension module:
  compilation fails with "undefined reference to _Py_ascii_whitespace"

  Will backport to 2.6.
................
  r66902 | skip.montanaro | 2008-10-15 06:49:10 -0500 (Wed, 15 Oct 2008) | 1 line

  easter egg
................
  r66903 | benjamin.peterson | 2008-10-15 15:34:09 -0500 (Wed, 15 Oct 2008) | 1 line

  don't recurse into directories that start with '.'
................
  r66905 | benjamin.peterson | 2008-10-15 16:05:55 -0500 (Wed, 15 Oct 2008) | 1 line

  support the optional line argument for idle
................
  r66906 | benjamin.peterson | 2008-10-15 16:58:46 -0500 (Wed, 15 Oct 2008) | 1 line

  add a much requested newline
................
  r66911 | benjamin.peterson | 2008-10-15 18:10:28 -0500 (Wed, 15 Oct 2008) | 41 lines

  Merged revisions 66805,66841,66860,66884-66886,66893,66907,66910 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r66805 | benjamin.peterson | 2008-10-04 20:11:02 -0500 (Sat, 04 Oct 2008) | 1 line

    mention what the fixes directory is for
  ........
    r66841 | benjamin.peterson | 2008-10-07 17:48:12 -0500 (Tue, 07 Oct 2008) | 1 line

    use assertFalse and assertTrue
  ........
    r66860 | benjamin.peterson | 2008-10-08 16:05:07 -0500 (Wed, 08 Oct 2008) | 1 line

    instead of abusing the pattern matcher, use start_tree to find a next binding
  ........
    r66884 | benjamin.peterson | 2008-10-13 15:50:30 -0500 (Mon, 13 Oct 2008) | 1 line

    don't print tokens to stdout when -v is given
  ........
    r66885 | benjamin.peterson | 2008-10-13 16:28:57 -0500 (Mon, 13 Oct 2008) | 1 line

    add the -x option to disable fixers
  ........
    r66886 | benjamin.peterson | 2008-10-13 16:33:53 -0500 (Mon, 13 Oct 2008) | 1 line

    cut down on some crud
  ........
    r66893 | benjamin.peterson | 2008-10-14 17:16:54 -0500 (Tue, 14 Oct 2008) | 1 line

    add an optional set literal fixer
  ........
    r66907 | benjamin.peterson | 2008-10-15 16:59:41 -0500 (Wed, 15 Oct 2008) | 1 line

    don't write backup files by default
  ........
    r66910 | benjamin.peterson | 2008-10-15 17:43:10 -0500 (Wed, 15 Oct 2008) | 1 line

    add the -n option; it stops backupfiles from being written
  ........
................
  r66912 | hirokazu.yamamoto | 2008-10-16 01:25:25 -0500 (Thu, 16 Oct 2008) | 2 lines

  removed unused _PyUnicode_FromFileSystemEncodedObject.
  made win32_chdir, win32_wchdir static.
................
  r66913 | benjamin.peterson | 2008-10-16 13:52:14 -0500 (Thu, 16 Oct 2008) | 1 line

  document that deque indexing is O(n) #4123
................
  r66922 | benjamin.peterson | 2008-10-16 14:40:14 -0500 (Thu, 16 Oct 2008) | 1 line

  use new showwarnings signature for idle #3391
................
  r66927 | andrew.kuchling | 2008-10-16 15:15:47 -0500 (Thu, 16 Oct 2008) | 1 line

  Fix wording (2.6.1 backport candidate)
................
  r66928 | georg.brandl | 2008-10-16 15:20:56 -0500 (Thu, 16 Oct 2008) | 2 lines

  Add more TOC to the whatsnew index page.
................
  r66936 | georg.brandl | 2008-10-16 16:20:15 -0500 (Thu, 16 Oct 2008) | 2 lines

  #4131: FF3 doesn't write cookies.txt files.
................
  r66939 | georg.brandl | 2008-10-16 16:36:39 -0500 (Thu, 16 Oct 2008) | 2 lines

  part of #4012: kill off old name "processing".
................
  r66940 | georg.brandl | 2008-10-16 16:38:48 -0500 (Thu, 16 Oct 2008) | 2 lines

  #4083: add "as" to except handler grammar as per PEP 3110.
................
  r66962 | benjamin.peterson | 2008-10-17 15:01:01 -0500 (Fri, 17 Oct 2008) | 1 line

  clarify CALL_FUNCTION #4141
................
  r66964 | georg.brandl | 2008-10-17 16:41:49 -0500 (Fri, 17 Oct 2008) | 2 lines

  Fix duplicate word.
................
  r66973 | armin.ronacher | 2008-10-19 03:27:43 -0500 (Sun, 19 Oct 2008) | 3 lines

  Fixed #4067 by implementing _attributes and _fields for the AST root node.
................

16 years agoImprove pickle's documentation.
Alexandre Vassalotti [Sat, 18 Oct 2008 20:47:58 +0000 (20:47 +0000)]
Improve pickle's documentation.
Use double-space for ending a sentence.
Add dbpickle.py example.
Improve description about persistent IDs.

16 years agoImprove pickle's documentation.
Alexandre Vassalotti [Sat, 18 Oct 2008 19:25:07 +0000 (19:25 +0000)]
Improve pickle's documentation.

There is still much to be done, but I am committing my changes
incrementally to avoid losing them again (for a third time now).

16 years ago#3664: The pickle module could segfault if a Pickler instance is not correctly initia...
Amaury Forgeot d'Arc [Fri, 17 Oct 2008 20:15:53 +0000 (20:15 +0000)]
#3664: The pickle module could segfault if a Pickler instance is not correctly initialized:
when a subclass forgets to call the base __init__ method,
or when __init__ is called a second time with invalid parameters

Patch by Alexandre Vassalotti.

16 years agoIssue #3717: Fix Demo/embed/demo.c.
Martin v. Löwis [Fri, 17 Oct 2008 15:54:44 +0000 (15:54 +0000)]
Issue #3717: Fix Demo/embed/demo.c.
Reviewed by Benjamin Peterson.

16 years agoMerged revisions 66958 via svnmerge from
Martin v. Löwis [Fri, 17 Oct 2008 13:47:20 +0000 (13:47 +0000)]
Merged revisions 66958 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66958 | martin.v.loewis | 2008-10-17 15:43:01 +0200 (Fr, 17 Okt 2008) | 1 line

  Issue #4091: Install pythonxy.dll in system32 again.
........

16 years agoReally commit the patch for bug 4125; runtests.sh use -bb flag
Barry Warsaw [Fri, 17 Oct 2008 12:05:40 +0000 (12:05 +0000)]
Really commit the patch for bug 4125; runtests.sh use -bb flag

16 years agoLatin-1 source code was not being properly decoded when passed through
Brett Cannon [Fri, 17 Oct 2008 03:38:50 +0000 (03:38 +0000)]
Latin-1 source code was not being properly decoded when passed through
compile(). This was due to left-over special-casing before UTF-8 became the
default source encoding.

Closes issue #3574. Thanks to Victor Stinner for help with the patch.

16 years agoSTINNER Victor (haypo)'s patch for bug 3988, Byte warning mode and b'' != ''
Barry Warsaw [Fri, 17 Oct 2008 01:50:37 +0000 (01:50 +0000)]
STINNER Victor (haypo)'s patch for bug 3988, Byte warning mode and b'' != ''

Also, his patch to runtests.sh to pass the -bb option (issue 4125).

16 years agoBenjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults.
Barry Warsaw [Fri, 17 Oct 2008 01:29:56 +0000 (01:29 +0000)]
Benjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults.

16 years agoApply Martin's patch for bug 3685, Crash while compiling Python 3000 in
Barry Warsaw [Fri, 17 Oct 2008 01:15:29 +0000 (01:15 +0000)]
Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in
OpenBSD 4.4.

16 years agoadd tests for PyInstanceMethod_Type
Benjamin Peterson [Thu, 16 Oct 2008 23:56:29 +0000 (23:56 +0000)]
add tests for PyInstanceMethod_Type

16 years agoBlocked revisions 66386 via svnmerge
Benjamin Peterson [Thu, 16 Oct 2008 23:52:53 +0000 (23:52 +0000)]
Blocked revisions 66386 via svnmerge

........
  r66386 | nick.coghlan | 2008-09-11 07:11:06 -0500 (Thu, 11 Sep 2008) | 1 line

  Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
........

16 years agoforward port r66386
Benjamin Peterson [Thu, 16 Oct 2008 23:24:44 +0000 (23:24 +0000)]
forward port r66386

16 years agoUnblocked revisions 66386 via svnmerge
Benjamin Peterson [Thu, 16 Oct 2008 22:49:08 +0000 (22:49 +0000)]
Unblocked revisions 66386 via svnmerge

........
  r66386 | nick.coghlan | 2008-09-11 07:11:06 -0500 (Thu, 11 Sep 2008) | 1 line

  Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
........

16 years agoMerged revisions 66938,66942 via svnmerge from
Benjamin Peterson [Thu, 16 Oct 2008 21:56:24 +0000 (21:56 +0000)]
Merged revisions 66938,66942 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66938 | benjamin.peterson | 2008-10-16 16:27:54 -0500 (Thu, 16 Oct 2008) | 1 line

  fix possible ref leak
........
  r66942 | benjamin.peterson | 2008-10-16 16:48:06 -0500 (Thu, 16 Oct 2008) | 1 line

  fix more possible ref leaks in _json and use Py_CLEAR
........

16 years agomerge r66932 and add a few py3k only checks
Benjamin Peterson [Thu, 16 Oct 2008 21:17:24 +0000 (21:17 +0000)]
merge r66932 and add a few py3k only checks

16 years agoremove some more references to __cmp__ #1717
Benjamin Peterson [Thu, 16 Oct 2008 19:34:46 +0000 (19:34 +0000)]
remove some more references to __cmp__ #1717

16 years agouse bytes throughout telnetlib docs
Benjamin Peterson [Wed, 15 Oct 2008 22:28:54 +0000 (22:28 +0000)]
use bytes throughout telnetlib docs

16 years agoVictor Stinner's patch to make telnetlib use bytes 3725
Benjamin Peterson [Wed, 15 Oct 2008 20:54:24 +0000 (20:54 +0000)]
Victor Stinner's patch to make telnetlib use bytes 3725

16 years agoIssue #4072: Restore build_py_2to3. Add a distutils demo for
Martin v. Löwis [Wed, 15 Oct 2008 05:58:17 +0000 (05:58 +0000)]
Issue #4072: Restore build_py_2to3. Add a distutils demo for
build_py_2to3.

16 years agocorrect changed import
Benjamin Peterson [Wed, 15 Oct 2008 03:09:45 +0000 (03:09 +0000)]
correct changed import

16 years agoMerged revisions 66894 via svnmerge from
Benjamin Peterson [Tue, 14 Oct 2008 23:07:40 +0000 (23:07 +0000)]
Merged revisions 66894 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66894 | benjamin.peterson | 2008-10-14 17:37:18 -0500 (Tue, 14 Oct 2008) | 1 line

  remove set compat cruft
........

16 years agoMerged revisions 66881 via svnmerge from
Martin v. Löwis [Mon, 13 Oct 2008 11:30:30 +0000 (11:30 +0000)]
Merged revisions 66881 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66881 | martin.v.loewis | 2008-10-13 13:23:35 +0200 (Mo, 13 Okt 2008) | 2 lines

  Issue #4018: Disable "for me" installations on Vista.
........

16 years agoremove a mention of backtick repr
Benjamin Peterson [Sun, 12 Oct 2008 12:51:12 +0000 (12:51 +0000)]
remove a mention of backtick repr

16 years agofix merge boo-boo
Benjamin Peterson [Sat, 11 Oct 2008 02:19:18 +0000 (02:19 +0000)]
fix merge boo-boo

16 years agomerge from trunk
Benjamin Peterson [Sat, 11 Oct 2008 00:49:57 +0000 (00:49 +0000)]
merge from trunk

16 years agoBlocked revisions 66822 via svnmerge
Benjamin Peterson [Fri, 10 Oct 2008 23:15:38 +0000 (23:15 +0000)]
Blocked revisions 66822 via svnmerge

........
  r66822 | skip.montanaro | 2008-10-06 20:55:20 -0500 (Mon, 06 Oct 2008) | 2 lines

  Simplify individual tests by defining setUp and tearDown methods.
........

16 years agoMerged revisions 66703,66708 via svnmerge from
Benjamin Peterson [Fri, 10 Oct 2008 22:20:52 +0000 (22:20 +0000)]
Merged revisions 66703,66708 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66703 | gregory.p.smith | 2008-09-30 15:41:13 -0500 (Tue, 30 Sep 2008) | 6 lines

  Works around issue3863: freebsd4/5/6 and os2emx are known to have OS bugs when
  calling fork() from a child thread.  This disables that unit test (with a note
  printed to stderr) on those platforms.

  A caveat about buggy platforms is added to the os.fork documentation.
........
  r66708 | andrew.macintyre | 2008-09-30 22:25:25 -0500 (Tue, 30 Sep 2008) | 9 lines

  fix for issue 3862: test_array fails FreeBSD 7 amd64

  FreeBSD 7's underlying malloc() is behaves differently to earlier versions
  and seriously overcommits available memory on amd64.  This may affect
  other 64bit platforms in some circumstances, so the scale of the
  problematic test is wound back.

  Patch by Mark Dickinson, reviewed by Martin von Loewis.
........