]> granicus.if.org Git - python/log
python
14 years agoFix typo.
Georg Brandl [Tue, 6 Jul 2010 22:58:50 +0000 (22:58 +0000)]
Fix typo.

14 years agoStyle nit.
Mark Dickinson [Tue, 6 Jul 2010 15:11:44 +0000 (15:11 +0000)]
Style nit.

14 years agoMinor improvements to logging documentation.
Vinay Sajip [Tue, 6 Jul 2010 15:08:55 +0000 (15:08 +0000)]
Minor improvements to logging documentation.

14 years agoIndentation and PEP 7 fixes.
Mark Dickinson [Tue, 6 Jul 2010 15:00:40 +0000 (15:00 +0000)]
Indentation and PEP 7 fixes.

14 years ago- sysmodule.c (get_hash_info): Define as static function.
Matthias Klose [Tue, 6 Jul 2010 10:53:30 +0000 (10:53 +0000)]
- sysmodule.c (get_hash_info): Define as static function.

14 years agoChange 'lowered' to 'lowercased'
Senthil Kumaran [Tue, 6 Jul 2010 02:08:36 +0000 (02:08 +0000)]
Change 'lowered' to 'lowercased'

14 years agoFix test_xmlrpc_net to no longer fail since there are no more buildbots for trunk.
Brett Cannon [Mon, 5 Jul 2010 22:11:16 +0000 (22:11 +0000)]
Fix test_xmlrpc_net to no longer fail since there are no more buildbots for trunk.

14 years ago"Modernized" the demo a little.
Alexander Belopolsky [Mon, 5 Jul 2010 21:44:05 +0000 (21:44 +0000)]
"Modernized" the demo a little.

14 years ago#9158: Fix y* format of PyArg_Parse*() functions documentation
Victor Stinner [Mon, 5 Jul 2010 21:36:21 +0000 (21:36 +0000)]
#9158: Fix y* format of PyArg_Parse*() functions documentation

14 years agoPost-detabification cleanup.
Mark Dickinson [Mon, 5 Jul 2010 20:14:26 +0000 (20:14 +0000)]
Post-detabification cleanup.

14 years agoUpdate Vec class constructor, remove indirection via function, use operator module.
Georg Brandl [Mon, 5 Jul 2010 20:13:41 +0000 (20:13 +0000)]
Update Vec class constructor, remove indirection via function, use operator module.

14 years agoRemove Dbm.
Georg Brandl [Mon, 5 Jul 2010 20:13:06 +0000 (20:13 +0000)]
Remove Dbm.

14 years agountabify
Benjamin Peterson [Mon, 5 Jul 2010 20:04:54 +0000 (20:04 +0000)]
untabify

14 years agoAdded two more test cases for datetime
Alexander Belopolsky [Mon, 5 Jul 2010 17:57:31 +0000 (17:57 +0000)]
Added two more test cases for datetime

14 years ago#9166: NotImplemented is not an exception.
Georg Brandl [Mon, 5 Jul 2010 17:48:38 +0000 (17:48 +0000)]
#9166: NotImplemented is not an exception.

14 years agolooking up on the type is correct, so this isn't an XXX
Benjamin Peterson [Mon, 5 Jul 2010 17:11:05 +0000 (17:11 +0000)]
looking up on the type is correct, so this isn't an XXX

14 years agoAdded more tests for utctimetuple()
Alexander Belopolsky [Mon, 5 Jul 2010 15:05:33 +0000 (15:05 +0000)]
Added more tests for utctimetuple()

14 years agocleanup basicsize logic #3268
Benjamin Peterson [Mon, 5 Jul 2010 15:01:22 +0000 (15:01 +0000)]
cleanup basicsize logic #3268

14 years agopydoc still has a silly encoding
Benjamin Peterson [Mon, 5 Jul 2010 14:59:40 +0000 (14:59 +0000)]
pydoc still has a silly encoding

14 years agoFix the docstrings of the capitalize method.
Senthil Kumaran [Mon, 5 Jul 2010 12:00:56 +0000 (12:00 +0000)]
Fix the docstrings of the capitalize method.

14 years agoFix: Issue9091 Minor documentation clarification.
Senthil Kumaran [Mon, 5 Jul 2010 11:41:42 +0000 (11:41 +0000)]
Fix: Issue9091 Minor documentation clarification.

14 years agoDo some basic refactoring. Along the way also list what files had their
Brett Cannon [Sun, 4 Jul 2010 22:05:34 +0000 (22:05 +0000)]
Do some basic refactoring. Along the way also list what files had their
whitespace cleaned up and do the proper plurality for "N file(s)" based on N.

Refactoring closes issue8912. Thanks to Éric Araujo for the patch.

14 years agoAdd brief explanation; remove no-longer-working link
Andrew M. Kuchling [Sun, 4 Jul 2010 20:47:00 +0000 (20:47 +0000)]
Add brief explanation; remove no-longer-working link

14 years agoRevert -r82559; it's not clear that this is the right thing to do, and the change...
Mark Dickinson [Sun, 4 Jul 2010 20:07:09 +0000 (20:07 +0000)]
Revert -r82559;  it's not clear that this is the right thing to do, and the change obscures the original intentions.

14 years agoRe-encode shlex.py in UTF-8, and remove coding cookie.
Mark Dickinson [Sun, 4 Jul 2010 19:27:12 +0000 (19:27 +0000)]
Re-encode shlex.py in UTF-8, and remove coding cookie.

14 years agoRemove coding cookie from heapq.py.
Mark Dickinson [Sun, 4 Jul 2010 19:23:49 +0000 (19:23 +0000)]
Remove coding cookie from heapq.py.

14 years agoMake Demo/parser/test_parser.py run.
Mark Dickinson [Sun, 4 Jul 2010 18:49:18 +0000 (18:49 +0000)]
Make Demo/parser/test_parser.py run.

14 years agoIssue #9130: Validate ellipsis tokens in relative imports.
Mark Dickinson [Sun, 4 Jul 2010 18:38:57 +0000 (18:38 +0000)]
Issue #9130: Validate ellipsis tokens in relative imports.

14 years agoFix symbol numbers in test_parser test.
Mark Dickinson [Sun, 4 Jul 2010 18:15:26 +0000 (18:15 +0000)]
Fix symbol numbers in test_parser test.

14 years agoIssue #9130: Fix validation of relative imports in parser module.
Mark Dickinson [Sun, 4 Jul 2010 18:11:51 +0000 (18:11 +0000)]
Issue #9130: Fix validation of relative imports in parser module.

14 years agoFixed the test
Alexander Belopolsky [Sun, 4 Jul 2010 17:47:30 +0000 (17:47 +0000)]
Fixed the test

14 years agoFixed doctests
Alexander Belopolsky [Sun, 4 Jul 2010 17:38:32 +0000 (17:38 +0000)]
Fixed doctests

14 years agoIssue #9118: help(None) will now return NoneType doc instead of
Alexander Belopolsky [Sun, 4 Jul 2010 17:00:20 +0000 (17:00 +0000)]
Issue #9118: help(None) will now return NoneType doc instead of
starting interactive help.

14 years agoMerged revisions 81478,82530-82531 via svnmerge from
Benjamin Peterson [Sun, 4 Jul 2010 16:44:15 +0000 (16:44 +0000)]
Merged revisions 81478,82530-82531 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r81478 | benjamin.peterson | 2010-05-22 13:47:39 -0500 (Sat, 22 May 2010) | 1 line

  ensure doctests have some future_features
........
  r82530 | benjamin.peterson | 2010-07-04 11:11:41 -0500 (Sun, 04 Jul 2010) | 1 line

  simplify ignore star imports from itertools #8892
........
  r82531 | benjamin.peterson | 2010-07-04 11:13:20 -0500 (Sun, 04 Jul 2010) | 1 line

  wrap with parenthesis not \
........

14 years agoInitialized merge tracking via "svnmerge" with revisions "0-80937" from
Benjamin Peterson [Sun, 4 Jul 2010 16:41:33 +0000 (16:41 +0000)]
Initialized merge tracking via "svnmerge" with revisions "0-80937" from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

14 years agoRemoved merge tracking for "svnmerge" for
Benjamin Peterson [Sun, 4 Jul 2010 16:40:27 +0000 (16:40 +0000)]
Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3

14 years agoInitialized merge tracking via "svnmerge" with revisions "0-80937" from
Benjamin Peterson [Sun, 4 Jul 2010 16:37:39 +0000 (16:37 +0000)]
Initialized merge tracking via "svnmerge" with revisions "0-80937" from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3

14 years agoIssue #9128: Fix validation of class decorators in parser module.
Mark Dickinson [Sun, 4 Jul 2010 16:37:31 +0000 (16:37 +0000)]
Issue #9128: Fix validation of class decorators in parser module.

14 years agoRemoved merge tracking for "svnmerge" for
Benjamin Peterson [Sun, 4 Jul 2010 16:33:07 +0000 (16:33 +0000)]
Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

14 years agoIssue #9152: Removed dead code in datetime module
Alexander Belopolsky [Sun, 4 Jul 2010 16:28:08 +0000 (16:28 +0000)]
Issue #9152: Removed dead code in datetime module

14 years agoFix refleak in Modules/audioop.c.
Mark Dickinson [Sun, 4 Jul 2010 10:15:11 +0000 (10:15 +0000)]
Fix refleak in Modules/audioop.c.

14 years agoRemove old and unsafe Dbm demo class.
Georg Brandl [Sun, 4 Jul 2010 07:25:18 +0000 (07:25 +0000)]
Remove old and unsafe Dbm demo class.

14 years agoMade minimal modifications to pass included tests
Alexander Belopolsky [Sat, 3 Jul 2010 22:36:06 +0000 (22:36 +0000)]
Made minimal modifications to pass included tests

14 years agoMake importlib.abc.SourceLoader the primary mechanism for importlib.
Brett Cannon [Sat, 3 Jul 2010 22:32:41 +0000 (22:32 +0000)]
Make importlib.abc.SourceLoader the primary mechanism for importlib.

This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).

14 years agoMake importlib.abc.SourceLoader the primary mechanism for importlib.
Brett Cannon [Sat, 3 Jul 2010 22:18:47 +0000 (22:18 +0000)]
Make importlib.abc.SourceLoader the primary mechanism for importlib.

This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).

14 years agoIssue #9151: Demo/classes/Dates.py does not work in 3.x Converted
Alexander Belopolsky [Sat, 3 Jul 2010 22:05:41 +0000 (22:05 +0000)]
Issue #9151: Demo/classes/Dates.py does not work in 3.x Converted
descriptive comment into a docstring.  Cast attributes to int in
__init__.  Use __new__ instead of deleting attributes to
"uninitialize".

14 years agoFix a spelling mistake in a comment.
Brett Cannon [Sat, 3 Jul 2010 22:03:16 +0000 (22:03 +0000)]
Fix a spelling mistake in a comment.

14 years agoTrailing whitespace is bad for .rst files.
Brett Cannon [Sat, 3 Jul 2010 21:50:52 +0000 (21:50 +0000)]
Trailing whitespace is bad for .rst files.

14 years agoMake importlib.abc.SourceLoader the primary mechanism for importlib.
Brett Cannon [Sat, 3 Jul 2010 21:48:25 +0000 (21:48 +0000)]
Make importlib.abc.SourceLoader the primary mechanism for importlib.

This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).

It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).

Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.

At this point importlib deviates from import on two points:

1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).

2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).

14 years agoIssue #9151: Demo/classes/Dates.py does not work in 3.x
Alexander Belopolsky [Sat, 3 Jul 2010 21:42:47 +0000 (21:42 +0000)]
Issue #9151: Demo/classes/Dates.py does not work in 3.x
Made minimal changes to make included test pass.

14 years agoIgnore __pycache__.
Brett Cannon [Sat, 3 Jul 2010 21:37:28 +0000 (21:37 +0000)]
Ignore __pycache__.

14 years agoRemove nonexistent tools from Tools README.
Mark Dickinson [Sat, 3 Jul 2010 21:00:51 +0000 (21:00 +0000)]
Remove nonexistent tools from Tools README.

14 years agoIssue #9094: Make python -m pickletools disassemble pickles given in
Alexander Belopolsky [Sat, 3 Jul 2010 20:35:53 +0000 (20:35 +0000)]
Issue #9094: Make python -m pickletools disassemble pickles given in
the command line.

14 years agoFix Issue5468 - urlencode to handle bytes and other alternate encodings.
Senthil Kumaran [Sat, 3 Jul 2010 17:48:22 +0000 (17:48 +0000)]
Fix Issue5468 - urlencode to handle bytes and other alternate encodings.
(Extensive tests provided). Patch by Dan Mahn.

14 years agoRemoved merge tracking for "svnmerge" for
Benjamin Peterson [Sat, 3 Jul 2010 15:09:20 +0000 (15:09 +0000)]
Removed merge tracking for "svnmerge" for
svn+ssh://pythondev@svn.python.org/python/branches/py3k/python/trunk

14 years agoMerged revisions 82492 via svnmerge from
Victor Stinner [Sat, 3 Jul 2010 13:44:22 +0000 (13:44 +0000)]
Merged revisions 82492 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82492 | victor.stinner | 2010-07-03 15:36:19 +0200 (sam., 03 juil. 2010) | 3 lines

  Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,
  ensure that the input string length is a multiple of the frame size
........

14 years agoRemove the need for a "()" empty argument list after opcodes.
Georg Brandl [Sat, 3 Jul 2010 10:41:33 +0000 (10:41 +0000)]
Remove the need for a "()" empty argument list after opcodes.

14 years agoFix markup.
Georg Brandl [Sat, 3 Jul 2010 10:33:26 +0000 (10:33 +0000)]
Fix markup.

14 years agoMerged revisions 82483 via svnmerge from
Georg Brandl [Sat, 3 Jul 2010 10:26:54 +0000 (10:26 +0000)]
Merged revisions 82483 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82483 | georg.brandl | 2010-07-03 12:25:54 +0200 (Sa, 03 Jul 2010) | 1 line

  Add link to bytecode docs.
........

14 years agoRecorded merge of revisions 82474 via svnmerge from
Georg Brandl [Sat, 3 Jul 2010 10:26:17 +0000 (10:26 +0000)]
Recorded merge of revisions 82474 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82474 | georg.brandl | 2010-07-03 10:40:13 +0200 (Sa, 03 Jul 2010) | 1 line

  Fix role name.
........

14 years agoUse the right role.
Georg Brandl [Sat, 3 Jul 2010 10:22:10 +0000 (10:22 +0000)]
Use the right role.

14 years agoWrap and use the correct directive.
Georg Brandl [Sat, 3 Jul 2010 10:21:50 +0000 (10:21 +0000)]
Wrap and use the correct directive.

14 years agoMerged revisions 82476 via svnmerge from
Mark Dickinson [Sat, 3 Jul 2010 09:17:16 +0000 (09:17 +0000)]
Merged revisions 82476 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82476 | mark.dickinson | 2010-07-03 10:15:09 +0100 (Sat, 03 Jul 2010) | 1 line

  Fix typo in sys.float_info docs.
........

14 years agoIssue 6507: missing patch submitter from NEWS entry in previous checkin
Nick Coghlan [Sat, 3 Jul 2010 07:38:28 +0000 (07:38 +0000)]
Issue 6507: missing patch submitter from NEWS entry in previous checkin

14 years agoIssue 6507: accept source strings directly in dis.dis(). Original patch by Daniel...
Nick Coghlan [Sat, 3 Jul 2010 07:36:51 +0000 (07:36 +0000)]
Issue 6507: accept source strings directly in dis.dis(). Original patch by Daniel Urban

14 years agoUpdate comment about surrogates.
Ezio Melotti [Sat, 3 Jul 2010 04:52:19 +0000 (04:52 +0000)]
Update comment about surrogates.

14 years agoMerged revisions 82466 via svnmerge from
Alexander Belopolsky [Sat, 3 Jul 2010 03:35:27 +0000 (03:35 +0000)]
Merged revisions 82466 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82466 | alexander.belopolsky | 2010-07-02 23:27:12 -0400 (Fri, 02 Jul 2010) | 1 line

  Revert r81681 (issue 8810).
........

14 years agoMake test_import a little bit more robust for cleaning up after itself in the
Brett Cannon [Sat, 3 Jul 2010 01:32:48 +0000 (01:32 +0000)]
Make test_import a little bit more robust for cleaning up after itself in the
face of a failure.

14 years agoMerged revisions 82461 via svnmerge from
Benjamin Peterson [Fri, 2 Jul 2010 23:25:44 +0000 (23:25 +0000)]
Merged revisions 82461 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82461 | benjamin.peterson | 2010-07-02 18:05:27 -0500 (Fri, 02 Jul 2010) | 1 line

  don't require the presence of __getformat__ or __setformat__; use requires_IEEE_754 globally
........

14 years agoMerged revisions 82455,82457,82459 via svnmerge from
Ezio Melotti [Fri, 2 Jul 2010 23:18:51 +0000 (23:18 +0000)]
Merged revisions 82455,82457,82459 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82455 | eric.smith | 2010-07-03 00:44:16 +0300 (Sat, 03 Jul 2010) | 1 line

  Moved period outside paren, where it belongs.
........
  r82457 | ezio.melotti | 2010-07-03 01:17:29 +0300 (Sat, 03 Jul 2010) | 1 line

  #9139: Add examples for str.format().
........
  r82459 | ezio.melotti | 2010-07-03 01:50:39 +0300 (Sat, 03 Jul 2010) | 1 line

  #9139: the thousands separator is new in 2.7.  Also add a missing variable in the example.
........

14 years agoSome people have mistaken Python bytecode as being stable and unchanging. In
Brett Cannon [Fri, 2 Jul 2010 22:03:00 +0000 (22:03 +0000)]
Some people have mistaken Python bytecode as being stable and unchanging. In
reality it's simply an implementation detail for CPython. This point is now
clearly documented in both the docs for dis and the glossary.

Closes issue #7829. Thanks to Terry Reedy for some initial suggestions on
wording.

14 years agoMerged revisions 82446 via svnmerge from
Mark Dickinson [Fri, 2 Jul 2010 20:26:07 +0000 (20:26 +0000)]
Merged revisions 82446 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82446 | mark.dickinson | 2010-07-02 19:06:52 +0100 (Fri, 02 Jul 2010) | 1 line

  Clarify sys.float_info documentation.
........

14 years agoMerged revisions 82447 via svnmerge from
Benjamin Peterson [Fri, 2 Jul 2010 19:45:07 +0000 (19:45 +0000)]
Merged revisions 82447 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82447 | benjamin.peterson | 2010-07-02 14:41:39 -0500 (Fri, 02 Jul 2010) | 1 line

  add space
........

14 years agoMerged revisions 82441 via svnmerge from
Nick Coghlan [Fri, 2 Jul 2010 16:14:05 +0000 (16:14 +0000)]
Merged revisions 82441 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82441 | nick.coghlan | 2010-07-03 02:01:53 +1000 (Sat, 03 Jul 2010) | 1 line

  Issue 8202 actually caused an unintended behavioural change and was reverted in 2.7 - remove reference from What's New
........

14 years agoStyle/consistency nit: make math_floor and math_ceil code look the same.
Mark Dickinson [Fri, 2 Jul 2010 16:05:15 +0000 (16:05 +0000)]
Style/consistency nit: make math_floor and math_ceil code look the same.

14 years agoMerged revisions 82439 via svnmerge from
Nick Coghlan [Fri, 2 Jul 2010 15:57:50 +0000 (15:57 +0000)]
Merged revisions 82439 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82439 | nick.coghlan | 2010-07-03 01:50:14 +1000 (Sat, 03 Jul 2010) | 1 line

  Fix a couple of minor nits in What's New before the release goes out
........

14 years agofix lookup of __ceil__
Benjamin Peterson [Fri, 2 Jul 2010 13:46:42 +0000 (13:46 +0000)]
fix lookup of __ceil__

14 years agoaccount for different ref counting semantics of _PyObject_LookupSpecial
Benjamin Peterson [Fri, 2 Jul 2010 13:35:17 +0000 (13:35 +0000)]
account for different ref counting semantics of _PyObject_LookupSpecial

14 years agoMerged revisions 82433 via svnmerge from
Georg Brandl [Fri, 2 Jul 2010 07:41:51 +0000 (07:41 +0000)]
Merged revisions 82433 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82433 | georg.brandl | 2010-07-02 09:33:50 +0200 (Fr, 02 Jul 2010) | 1 line

  Grammar and markup fixes.
........

14 years agoBlocked revisions 82429 via svnmerge
Benjamin Peterson [Thu, 1 Jul 2010 23:39:26 +0000 (23:39 +0000)]
Blocked revisions 82429 via svnmerge

........
  r82429 | benjamin.peterson | 2010-07-01 18:35:37 -0500 (Thu, 01 Jul 2010) | 1 line

  trunc does use the special method, though
........

14 years agoMerged revisions 82420 via svnmerge from
Benjamin Peterson [Thu, 1 Jul 2010 17:49:01 +0000 (17:49 +0000)]
Merged revisions 82420 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82420 | benjamin.peterson | 2010-07-01 12:45:52 -0500 (Thu, 01 Jul 2010) | 1 line

  fix fixer name
........

14 years agocorrectly lookup __trunc__ and __floor__
Benjamin Peterson [Thu, 1 Jul 2010 15:16:55 +0000 (15:16 +0000)]
correctly lookup __trunc__ and __floor__

14 years agoBlocked revisions 82415 via svnmerge
Benjamin Peterson [Thu, 1 Jul 2010 15:09:14 +0000 (15:09 +0000)]
Blocked revisions 82415 via svnmerge

........
  r82415 | benjamin.peterson | 2010-07-01 10:07:15 -0500 (Thu, 01 Jul 2010) | 1 line

  remove docs about delegating to special methods; it does no such thing
........

14 years agoUpdate PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.
Ezio Melotti [Thu, 1 Jul 2010 07:32:02 +0000 (07:32 +0000)]
Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.

1) #8271: when a byte sequence is invalid, only the start byte and all the
   valid continuation bytes are now replaced by U+FFFD, instead of replacing
   the number of bytes specified by the start byte.
   See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (pages 94-95);
2) 5- and 6-bytes-long UTF-8 sequences are now considered invalid (no changes
   in behavior);
3) Change the error messages "unexpected code byte" to "invalid start byte"
   and "invalid data" to "invalid continuation byte";
4) Add an extensive set of tests in test_unicode;
5) Fix test_codeccallbacks because it was failing after this change.

14 years agoMerged revisions 82409 via svnmerge from
Benjamin Peterson [Wed, 30 Jun 2010 18:44:04 +0000 (18:44 +0000)]
Merged revisions 82409 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82409 | benjamin.peterson | 2010-06-30 13:41:08 -0500 (Wed, 30 Jun 2010) | 1 line

  an AttributeError is perfectly acceptable here
........

14 years agoMerged revisions 82404 via svnmerge from
Giampaolo Rodolà [Wed, 30 Jun 2010 17:47:39 +0000 (17:47 +0000)]
Merged revisions 82404 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82404 | giampaolo.rodola | 2010-06-30 19:38:28 +0200 (mer, 30 giu 2010) | 1 line

  fix issue #6589: cleanup asyncore.socket_map if smtpd.SMTPServer constructor raises an exception
........

14 years agoMerged revisions 82403 via svnmerge from
Benjamin Peterson [Wed, 30 Jun 2010 17:39:45 +0000 (17:39 +0000)]
Merged revisions 82403 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82403 | benjamin.peterson | 2010-06-30 12:11:08 -0500 (Wed, 30 Jun 2010) | 1 line

  mark test depending on ref counting
........

14 years agoBlocked revisions 82399-82400 via svnmerge
Mark Dickinson [Wed, 30 Jun 2010 16:36:12 +0000 (16:36 +0000)]
Blocked revisions 82399-82400 via svnmerge

........
  r82399 | mark.dickinson | 2010-06-30 15:19:56 +0100 (Wed, 30 Jun 2010) | 1 line

  Update Demo/parser directory; backport unparse fixes from py3k.
........
  r82400 | mark.dickinson | 2010-06-30 17:27:57 +0100 (Wed, 30 Jun 2010) | 2 lines

  Issue #9125:  Update parser module for "except ... as ..." syntax.
........

14 years agoIssue 9110. Adding ContextDecorator to contextlib. This enables the creation of APIs...
Michael Foord [Wed, 30 Jun 2010 12:17:50 +0000 (12:17 +0000)]
Issue 9110. Adding ContextDecorator to contextlib. This enables the creation of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator.

14 years agoUnparse infinite imaginary literals correctly. Add some more numeric tests.
Mark Dickinson [Wed, 30 Jun 2010 11:45:53 +0000 (11:45 +0000)]
Unparse infinite imaginary literals correctly.  Add some more numeric tests.

14 years agoRevert accidental extra changes included in r82391.
Mark Dickinson [Wed, 30 Jun 2010 11:14:30 +0000 (11:14 +0000)]
Revert accidental extra changes included in r82391.

14 years agoIssue #9011: Tests for Python 3.2's treatment of negated imaginary literals.
Mark Dickinson [Wed, 30 Jun 2010 11:13:36 +0000 (11:13 +0000)]
Issue #9011:  Tests for Python 3.2's treatment of negated imaginary literals.

14 years agoRemove backtick syntax for repr.
Mark Dickinson [Wed, 30 Jun 2010 09:14:43 +0000 (09:14 +0000)]
Remove backtick syntax for repr.

14 years agoBetter solution for attribute access on integer literals.
Mark Dickinson [Wed, 30 Jun 2010 09:05:47 +0000 (09:05 +0000)]
Better solution for attribute access on integer literals.

14 years agoOutput try-except-finally statements where appropriate.
Mark Dickinson [Wed, 30 Jun 2010 08:46:53 +0000 (08:46 +0000)]
Output try-except-finally statements where appropriate.

14 years agoCollapse else: if: ... into elif:
Mark Dickinson [Wed, 30 Jun 2010 08:32:11 +0000 (08:32 +0000)]
Collapse else: if: ... into elif:

14 years agoMerged revisions 82379 via svnmerge from
Mark Dickinson [Tue, 29 Jun 2010 20:10:42 +0000 (20:10 +0000)]
Merged revisions 82379 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82379 | mark.dickinson | 2010-06-29 21:09:12 +0100 (Tue, 29 Jun 2010) | 1 line

  Issue #1789:  clarify that the 'size' column in struct docs refers to standard size.
........

14 years agoFix typo in unparsing of a class definition.
Mark Dickinson [Tue, 29 Jun 2010 18:38:59 +0000 (18:38 +0000)]
Fix typo in unparsing of a class definition.

14 years agoupdate for nonlocal keyword
Benjamin Peterson [Tue, 29 Jun 2010 18:36:39 +0000 (18:36 +0000)]
update for nonlocal keyword

14 years agoMake a sentence a little less awkward.
Brett Cannon [Tue, 29 Jun 2010 18:26:11 +0000 (18:26 +0000)]
Make a sentence a little less awkward.