summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 82441 via svnmerge fromNick Coghlan2010-07-021-7/+0
| | | | | | | | | | 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 ........
* Style/consistency nit: make math_floor and math_ceil code look the same.Mark Dickinson2010-07-021-6/+4
|
* Merged revisions 82439 via svnmerge fromNick Coghlan2010-07-021-6/+6
| | | | | | | | | | 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 ........
* fix lookup of __ceil__Benjamin Peterson2010-07-023-11/+12
|
* account for different ref counting semantics of _PyObject_LookupSpecialBenjamin Peterson2010-07-021-4/+8
|
* Merged revisions 82433 via svnmerge fromGeorg Brandl2010-07-021-15/+15
| | | | | | | | | | 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. ........
* Blocked revisions 82429 via svnmergeBenjamin Peterson2010-07-010-0/+0
| | | | | | | | ........ r82429 | benjamin.peterson | 2010-07-01 18:35:37 -0500 (Thu, 01 Jul 2010) | 1 line trunc does use the special method, though ........
* Merged revisions 82420 via svnmerge fromBenjamin Peterson2010-07-011-1/+1
| | | | | | | | | | 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 ........
* correctly lookup __trunc__ and __floor__Benjamin Peterson2010-07-013-20/+17
|
* Blocked revisions 82415 via svnmergeBenjamin Peterson2010-07-010-0/+0
| | | | | | | | ........ 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 ........
* Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.Ezio Melotti2010-07-014-66/+229
| | | | | | | | | | | | | 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.
* Merged revisions 82409 via svnmerge fromBenjamin Peterson2010-06-300-0/+0
| | | | | | | | | | 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 ........
* Merged revisions 82404 via svnmerge fromGiampaolo Rodolà2010-06-302-8/+16
| | | | | | | | | | 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 ........
* Merged revisions 82403 via svnmerge fromBenjamin Peterson2010-06-301-0/+1
| | | | | | | | | | 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 ........
* Blocked revisions 82399-82400 via svnmergeMark Dickinson2010-06-300-0/+0
| | | | | | | | | | | | ........ 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. ........
* Issue 9110. Adding ContextDecorator to contextlib. This enables the creation ↵Michael Foord2010-06-304-2/+237
| | | | of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator.
* Unparse infinite imaginary literals correctly. Add some more numeric tests.Mark Dickinson2010-06-302-5/+20
|
* Revert accidental extra changes included in r82391.Mark Dickinson2010-06-302-42/+5
|
* Issue #9011: Tests for Python 3.2's treatment of negated imaginary literals.Mark Dickinson2010-06-304-5/+63
|
* Remove backtick syntax for repr.Mark Dickinson2010-06-301-5/+0
|
* Better solution for attribute access on integer literals.Mark Dickinson2010-06-301-14/+8
|
* Output try-except-finally statements where appropriate.Mark Dickinson2010-06-302-5/+23
|
* Collapse else: if: ... into elif:Mark Dickinson2010-06-302-1/+32
|
* Merged revisions 82379 via svnmerge fromMark Dickinson2010-06-291-1/+5
| | | | | | | | | | 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. ........
* Fix typo in unparsing of a class definition.Mark Dickinson2010-06-292-1/+3
|
* update for nonlocal keywordBenjamin Peterson2010-06-291-4/+6
|
* Make a sentence a little less awkward.Brett Cannon2010-06-291-2/+1
|
* note that byte strings can be raw, too #9114Benjamin Peterson2010-06-291-9/+9
|
* Blocked revisions 82368 via svnmergeBenjamin Peterson2010-06-290-0/+0
| | | | | | | | ........ r82368 | benjamin.peterson | 2010-06-29 10:18:02 -0500 (Tue, 29 Jun 2010) | 1 line group cStringIO docs under its factory function ........
* Added information about pickle security and SocketHandler, and some ↵Vinay Sajip2010-06-291-2/+34
| | | | cross-reference targets.
* test_unparse.py: Do roundtrip testing for all Python files in Lib and Lib/test.Mark Dickinson2010-06-291-8/+46
|
* More unparse.py fixes:Mark Dickinson2010-06-292-11/+26
| | | | | | | - parenthesize lambdas, to avoid turning (lambda : int)() into lambda: int() - unparse an infinite float literals in the AST as an overflowing finite value unparse.py now successfully round-trips on all valid Lib/*.py and Lib/test/*.py files.
* Add parentheses around numeric literals, to avoid turning 3 .bit_length() ↵Mark Dickinson2010-06-292-10/+14
| | | | into 3.bit_length().
* unparse.py: respect coding cookie in input filesMark Dickinson2010-06-291-1/+5
|
* Merged revisions 82356 via svnmerge fromMark Dickinson2010-06-291-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82356 | mark.dickinson | 2010-06-29 08:37:25 +0100 (Tue, 29 Jun 2010) | 1 line Spelling. ........
* rephrase and remove uneeded statementBenjamin Peterson2010-06-291-6/+4
|
* Update md5driver.py for 3.x.Brian Curtin2010-06-291-7/+6
| | | | Changed an import, replaced md5.new() with md5(), and added an encode where needed.
* unparse.py: Typo fix.Mark Dickinson2010-06-281-1/+1
|
* Update Demo/parser/unparse.py to current Python 3.x syntax. Additions:Mark Dickinson2010-06-282-54/+194
| | | | | | | | | | | | | | | | | | - relative imports - keyword-only arguments - function annotations - class decorators - raise ... from ... - except ... as ... - nonlocal - bytes literals - set literals - set comprehensions - dict comprehensions Removals: - print statement. Some of this should be backported to 2.x.
* Merged revisions 82345 via svnmerge fromMark Dickinson2010-06-282-1/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82345 | mark.dickinson | 2010-06-28 20:54:19 +0100 (Mon, 28 Jun 2010) | 1 line unparse.py: fix mispaced parentheses in chained comparisons ........
* Merged revisions 82338,82340-82341 via svnmerge fromMark Dickinson2010-06-282-6/+77
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82338 | mark.dickinson | 2010-06-28 20:31:41 +0100 (Mon, 28 Jun 2010) | 9 lines Fix some shallow bugs in Demo/parser/unparse.py, and add tests: - insert commas between entries in del statement - left and right shifts were represented as >> and << (respectively); reverse - unindent properly after for: else: or while: else: - add parens around the result of an unary operation - add parens around negative numbers, to avoid turning (-1)**2 into -1**2. ........ r82340 | mark.dickinson | 2010-06-28 20:34:15 +0100 (Mon, 28 Jun 2010) | 1 line Fix typo in test_unparse.py. ........ r82341 | mark.dickinson | 2010-06-28 20:38:19 +0100 (Mon, 28 Jun 2010) | 1 line Set svn:eol-style on test_unparse.py. ........
* update error messageBenjamin Peterson2010-06-281-2/+1
|
* Merged revisions 82334 via svnmerge fromSenthil Kumaran2010-06-281-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82334 | senthil.kumaran | 2010-06-28 22:37:40 +0530 (Mon, 28 Jun 2010) | 3 lines Documentation correction. urllib2.urlopen.info returns a mimetools.Message instance not HTTPMessage object. ........
* Merged revisions 82332 via svnmerge fromBenjamin Peterson2010-06-281-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82332 | benjamin.peterson | 2010-06-28 10:41:06 -0500 (Mon, 28 Jun 2010) | 1 line fix skipping condition ........
* Merged revisions 82330 via svnmerge fromBenjamin Peterson2010-06-281-1/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82330 | benjamin.peterson | 2010-06-28 10:36:40 -0500 (Mon, 28 Jun 2010) | 1 line testcapi tests are definitely cpython only ........
* Added missing white spaceAlexander Belopolsky2010-06-281-1/+1
|
* Merged revisions 82324 via svnmerge fromSenthil Kumaran2010-06-281-0/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82324 | senthil.kumaran | 2010-06-28 19:26:46 +0530 (Mon, 28 Jun 2010) | 3 lines Fix Issue8653 - Docstring for urlunsplit function. ........
* Add an inheritance test for importlib.abc.SourceLoader.Brett Cannon2010-06-281-0/+5
|
* Move importlib.abc.SourceLoader to _bootstrap.Brett Cannon2010-06-284-106/+143
| | | | | | | | | | | Required updating code relying on other modules to switch to _bootstrap's unique module requirements. This led to the realization that get_code was being too liberal in its exception catching when calling set_data by blindly grabbing IOError. Shifted the responsibility of safely ignoring writes to a read-only path to set_data. Importlib is still not relying on SourceLoader yet; requires creating a SourcelessLoader and updating the source finder.
* Merged revisions 82317 via svnmerge fromBenjamin Peterson2010-06-281-16/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82317 | benjamin.peterson | 2010-06-27 21:58:25 -0500 (Sun, 27 Jun 2010) | 1 line remove unused last argument to property_copy ........