summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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 ........
* fix test with more obviously incorrect bytecodeBenjamin Peterson2010-06-281-1/+1
|
* fix versionchangedBenjamin Peterson2010-06-282-3/+3
|
* Merged revisions 77402,77505,77510 via svnmerge fromBenjamin Peterson2010-06-283-21/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77402 | brett.cannon | 2010-01-09 20:56:19 -0600 (Sat, 09 Jan 2010) | 12 lines DeprecationWarning is now silent by default. This was originally suggested by Guido, discussed on the stdlib-sig mailing list, and given the OK by Guido directly to me. What this change essentially means is that Python has taken a policy of silencing warnings that are only of interest to developers by default. This should prevent users from seeing warnings which are triggered by an application being run against a new interpreter before the app developer has a chance to update their code. Closes issue #7319. Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin for helping with the issue. ........ r77505 | brett.cannon | 2010-01-14 14:00:28 -0600 (Thu, 14 Jan 2010) | 7 lines The silencing of DeprecationWarning was not taking -3 into consideration. Since Py3K warnings are DeprecationWarning by default this was causing -3 to essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not used. Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help. ........ r77510 | brett.cannon | 2010-01-14 19:31:45 -0600 (Thu, 14 Jan 2010) | 1 line Remove C++/C99-style comments. ........
* Implement importlib.abc.SourceLoader and deprecate PyLoader and PyPycLoader.Brett Cannon2010-06-274-127/+764
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | SourceLoader is a simplification of both PyLoader and PyPycLoader. If one only wants to use source, then they need to only implement get_data and get_filename. To also use bytecode -- sourceless loading is not supported -- then two abstract methods -- path_mtime and set_data -- need to be implemented. Compared to PyLoader and PyPycLoader, there are less abstract methods introduced and bytecode files become an optimization controlled by the ABC and hidden from the user (this need came about as PEP 3147 showed that not treating bytecode as an optimization can cause problems for compatibility). PyLoader is deprecated in favor of SourceLoader. To be compatible from Python 3.1 onwards, a subclass need only use simple methods for source_path and is_package. Otherwise conditional subclassing based on whether Python 3.1 or Python 3.2 is being is the only change. The documentation and docstring for PyLoader explain what is exactly needed. PyPycLoader is deprecated also in favor of SourceLoader. Because PEP 3147 shifted bytecode path details so much, there is no foolproof way to provide backwards-compatibility with SourceLoader. Because of this the class is simply deprecated and users should move to SourceLoader (and optionally PyLoader for Python 3.1). This does lead to a loss of support for sourceless loading unfortunately. At some point before Python 3.2 is released, SourceLoader will be moved over to importlib._bootstrap so that the core code of importlib relies on the new code instead of the old PyPycLoader code. This commit is being done now so that there is no issue in having the API in Python 3.1a1.
* Blocked revisions 79596 via svnmergeBenjamin Peterson2010-06-270-0/+0
| | | | | | | | ........ r79596 | eric.smith | 2010-04-02 07:30:56 -0500 (Fri, 02 Apr 2010) | 1 line Issue 7994: Make object.__format__ with a non-empty format string a PendingDecprecationWarning. Still need to remove uses of this from various tests. ........
* Merged revisions 79894-79895,80098,80120 via svnmerge fromBenjamin Peterson2010-06-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79894 | jeroen.ruigrok | 2010-04-07 09:33:37 -0500 (Wed, 07 Apr 2010) | 5 lines FreeBSD is not a sysv platform, so use freebsd.S instead of sysv.S (as is also the case in FreeBSD's port of libffi). Reviewed by: dickinsm ........ r79895 | jeroen.ruigrok | 2010-04-07 11:34:08 -0500 (Wed, 07 Apr 2010) | 2 lines Document the libffi FreeBSD fix. ........ r80098 | benjamin.peterson | 2010-04-15 16:42:16 -0500 (Thu, 15 Apr 2010) | 1 line add space ........ r80120 | antoine.pitrou | 2010-04-16 16:34:02 -0500 (Fri, 16 Apr 2010) | 3 lines Ignore jinja2 ........
* Merged revisions 81004 via svnmerge fromBenjamin Peterson2010-06-271-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81004 | mark.dickinson | 2010-05-08 14:13:21 -0500 (Sat, 08 May 2010) | 1 line Fix configure bug that was misreporting availability of MacOS X 10.5 SDK as available on Linux but not on OS X. ........
* Blocked revisions 80396 via svnmergeBenjamin Peterson2010-06-270-0/+0
| | | | | | | | ........ r80396 | sean.reifschneider | 2010-04-23 03:31:55 -0500 (Fri, 23 Apr 2010) | 2 lines issue8451: Making syslog module use sys.argv[0] for "ident". ........
* Recorded merge of revisions 80866 via svnmerge fromBenjamin Peterson2010-06-270-0/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80866 | andrew.kuchling | 2010-05-06 08:03:39 -0500 (Thu, 06 May 2010) | 1 line Use anonymous hyperlinks ........
* Merged revisions 81880 via svnmerge fromBenjamin Peterson2010-06-271-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81880 | andrew.kuchling | 2010-06-10 19:14:34 -0500 (Thu, 10 Jun 2010) | 1 line Edit comments for current Python; bump version number of Python ........
* Blocked revisions 81700 via svnmergeBenjamin Peterson2010-06-270-0/+0
| | | | | | | | | ........ r81700 | martin.v.loewis | 2010-06-04 14:15:32 -0500 (Fri, 04 Jun 2010) | 2 lines Display installer warning that Windows 2000 won't be supported in future releases. ........