summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 69976 via svnmerge fromTarek Ziadé2009-02-253-6/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69976 | tarek.ziade | 2009-02-25 23:29:27 +0100 (Wed, 25 Feb 2009) | 1 line Fixed #5316 : test failure in test_site ........
* Merged revisions 69974 via svnmerge fromMark Dickinson2009-02-251-1/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69974 | mark.dickinson | 2009-02-25 20:29:50 +0000 (Wed, 25 Feb 2009) | 3 lines Replace long with twodigits, to avoid depending on sizeof(digit) < sizeof(long) ........
* http://bugs.python.org/issue4715Jeffrey Yasskin2009-02-259-127/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch by Antoine Pitrou optimizes the bytecode for conditional branches by merging the following "POP_TOP" instruction into the conditional jump. For example, the list comprehension "[x for x in l if not x]" produced the following bytecode: 1 0 BUILD_LIST 0 3 LOAD_FAST 0 (.0) >> 6 FOR_ITER 23 (to 32) 9 STORE_FAST 1 (x) 12 LOAD_FAST 1 (x) 15 JUMP_IF_TRUE 10 (to 28) 18 POP_TOP 19 LOAD_FAST 1 (x) 22 LIST_APPEND 2 25 JUMP_ABSOLUTE 6 >> 28 POP_TOP 29 JUMP_ABSOLUTE 6 >> 32 RETURN_VALUE but after the patch it produces the following bytecode: 1 0 BUILD_LIST 0 3 LOAD_FAST 0 (.0) >> 6 FOR_ITER 18 (to 27) 9 STORE_FAST 1 (x) 12 LOAD_FAST 1 (x) 15 POP_JUMP_IF_TRUE 6 18 LOAD_FAST 1 (x) 21 LIST_APPEND 2 24 JUMP_ABSOLUTE 6 >> 27 RETURN_VALUE Notice that not only the code is shorter, but the conditional jump (POP_JUMP_IF_TRUE) jumps right to the start of the loop instead of going through the JUMP_ABSOLUTE at the end. "continue" statements are helped similarly. Furthermore, the old jump opcodes (JUMP_IF_FALSE, JUMP_IF_TRUE) have been replaced by two new opcodes: - JUMP_IF_TRUE_OR_POP, which jumps if true and pops otherwise - JUMP_IF_FALSE_OR_POP, which jumps if false and pops otherwise
* More markup and spelling fixes.Raymond Hettinger2009-02-251-6/+6
|
* Tweak markup, grammar, and punctuation.Raymond Hettinger2009-02-251-5/+5
|
* Revert unintended part of r69948. Pydoc was not supposed to change.Raymond Hettinger2009-02-241-10/+10
|
* Refine docs for super() noting that sibling classes canRaymond Hettinger2009-02-242-19/+23
| | | | | | be called, not just parents. Add a comparison to getattr() which has the same search order but also includes the type itself.
* Use ABCs to validate documented restriction to Sets or Sequences.Raymond Hettinger2009-02-241-3/+4
|
* range() should have been registered as a Sequence.Raymond Hettinger2009-02-242-0/+3
| | | | Needs to be backported to 2.6, 2.7, and 3.0.
* Fix-up random docs. Jumpahead was removed long ago. Other minor corrections.Raymond Hettinger2009-02-241-14/+4
|
* Blocked revisions 69870-69871,69908 via svnmergeBenjamin Peterson2009-02-240-0/+0
| | | | | | | | | | | | | | | | ........ r69870 | antoine.pitrou | 2009-02-22 11:25:52 -0600 (Sun, 22 Feb 2009) | 3 lines Try to make sense of the test_site buildbot failures ........ r69871 | antoine.pitrou | 2009-02-22 12:20:46 -0600 (Sun, 22 Feb 2009) | 3 lines Revert debugging statements, culprit is possibly test_distutils (see #5316) ........ r69908 | raymond.hettinger | 2009-02-23 13:32:55 -0600 (Mon, 23 Feb 2009) | 1 line Update itertools recipes to use next(). ........
* Update itertools recipes to use next().Raymond Hettinger2009-02-231-4/+3
|
* Merged revisions 69902 via svnmerge fromTarek Ziadé2009-02-232-0/+150
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69902 | tarek.ziade | 2009-02-23 13:41:29 +0100 (Mon, 23 Feb 2009) | 1 line more test coverage ........
* Blocked revisions 69896 via svnmergeGeorg Brandl2009-02-230-0/+0
| | | | | | | | ........ r69896 | georg.brandl | 2009-02-23 11:24:23 +0100 (Mo, 23 Feb 2009) | 1 line #5348: format() converts all kinds of values. ........
* #5348: format() converts all kinds of values.Georg Brandl2009-02-231-5/+6
|
* .pythonrc.py is no moreBenjamin Peterson2009-02-231-3/+0
|
* Merged revisions 69889 via svnmerge fromMatthias Klose2009-02-222-3/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69889 | matthias.klose | 2009-02-23 00:14:26 +0100 (Mo, 23 Feb 2009) | 2 lines - Link the shared python library with $(MODLIBS). ........
* Merged revisions 69881 via svnmerge fromTarek Ziadé2009-02-222-9/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69881 | tarek.ziade | 2009-02-22 21:15:41 +0100 (Sun, 22 Feb 2009) | 1 line Removing unused __main__ sections ........
* Blocked revisions 69878 via svnmergeTarek Ziadé2009-02-220-0/+0
| | | | | | | | ........ r69878 | tarek.ziade | 2009-02-22 21:11:46 +0100 (Sun, 22 Feb 2009) | 1 line removing map and lambda usage, so the test is similar to py3k's branch one ........
* Merged revisions 69874 via svnmerge fromTarek Ziadé2009-02-222-77/+88
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69874 | tarek.ziade | 2009-02-22 20:58:12 +0100 (Sun, 22 Feb 2009) | 1 line moved distutils.text_file tests into a real unittest class ........
* - Modules/Setup.dist: Mention _heapqMatthias Klose2009-02-221-0/+1
|
* Merged revisions 69861 via svnmerge fromTarek Ziadé2009-02-222-15/+9
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69861 | tarek.ziade | 2009-02-22 01:07:45 +0100 (Sun, 22 Feb 2009) | 1 line using versionchanged instead of versionadded for distutils doc on sdist default files ........
* In Py3.x, a list comprehension is now faster than list(map(itemgetter(0), ↵Raymond Hettinger2009-02-211-5/+4
| | | | iterable)).
* Merged revisions 69855 via svnmerge fromBenjamin Peterson2009-02-211-6/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69855 | benjamin.peterson | 2009-02-21 17:09:33 -0600 (Sat, 21 Feb 2009) | 1 line fix compiler warnings ........
* Relocate source_mtime in importlib to PyPycLoader.Brett Cannon2009-02-211-13/+11
|
* Blocked revisions 69837-69838 via svnmergeBenjamin Peterson2009-02-210-0/+0
| | | | | | | | | | | | | ........ r69837 | raymond.hettinger | 2009-02-21 01:17:22 -0600 (Sat, 21 Feb 2009) | 4 lines Fix keyword arguments for itertools.count(). Step arg without a start arg was ignored. ........ r69838 | raymond.hettinger | 2009-02-21 02:58:42 -0600 (Sat, 21 Feb 2009) | 1 line Speedup and simplify negative counter using count's new step argument. ........
* Port r69837: Fix keyword arguments for itertools.count(). Step arg without a ↵Raymond Hettinger2009-02-212-28/+47
| | | | start arg was ignored.
* Port r69838: Speedup and simplify negative counter using count's new step ↵Raymond Hettinger2009-02-211-3/+3
| | | | argument.
* Merged revisions 69846 via svnmerge fromMark Dickinson2009-02-2148-83/+83
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69846 | mark.dickinson | 2009-02-21 20:27:01 +0000 (Sat, 21 Feb 2009) | 2 lines Issue #5341: Fix a variety of spelling errors. ........
* Refactor source and bytecode file loaders in importlib so that thereBrett Cannon2009-02-214-150/+164
| | | | are source-only and source/bytecode loaders.
* Tweak the source/bytecode loader from importlib to use more of the PEP 302Brett Cannon2009-02-212-3/+3
| | | | protocol API.
* Separate out finder for source and source/bytecode.Brett Cannon2009-02-214-10/+21
|
* Do some cleanup in importlib:Brett Cannon2009-02-218-62/+56
| | | | | | | + Ditch using arguments to super(). + Ditch subclassing from object directly. + Move directory check out of chaining path hook to file path hook/finder. + Rename some classes to better reflect they are finders, not importers.
* Add some notes about importlib and some API exposure cleanup.Brett Cannon2009-02-211-5/+7
|
* Minor NOTES changes for importlib.Brett Cannon2009-02-211-2/+1
|
* More typos in Lib/turtle.pyMark Dickinson2009-02-201-20/+20
|
* Merged revisions 69816 via svnmerge fromMark Dickinson2009-02-201-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69816 | mark.dickinson | 2009-02-20 20:42:53 +0000 (Fri, 20 Feb 2009) | 2 lines Issue #5295: Typos in turtle.py ........
* Merged revisions 69806 via svnmerge fromEric Smith2009-02-202-17/+35
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69806 | eric.smith | 2009-02-20 09:02:36 -0500 (Fri, 20 Feb 2009) | 1 line Issue #5247: Improve error message when unknown format codes are used when using str.format() with str, int, and float arguments. ........
* Merged revisions 69415,69591,69593 via svnmerge fromBenjamin Peterson2009-02-204-12/+18
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69415 | benjamin.peterson | 2009-02-07 13:08:22 -0600 (Sat, 07 Feb 2009) | 1 line make destinsrc private ........ r69591 | martin.v.loewis | 2009-02-13 14:26:16 -0600 (Fri, 13 Feb 2009) | 1 line Update Tix build procedure. ........ r69593 | martin.v.loewis | 2009-02-13 14:51:48 -0600 (Fri, 13 Feb 2009) | 1 line Add optional code signing after merging. ........
* Merged revisions 69769,69776 via svnmerge fromBenjamin Peterson2009-02-202-55/+47
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69769 | georg.brandl | 2009-02-19 02:30:06 -0600 (Thu, 19 Feb 2009) | 1 line #5310, #3558: fix operator precedence table. ........ r69776 | georg.brandl | 2009-02-19 10:34:51 -0600 (Thu, 19 Feb 2009) | 2 lines #5317: update IronPython URL. ........
* Blocked revisions 69268,69516,69757,69761,69765,69770,69772,69777,69795 via ↵Benjamin Peterson2009-02-200-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge ........ r69268 | kristjan.jonsson | 2009-02-04 04:05:25 -0600 (Wed, 04 Feb 2009) | 1 line issue 4804: Provide checks for the format string of strftime, and for the "mode" string of fopen on Windows. These strings are user provided from python and so we can avoid invoking the C runtime invalid parameter handler by first checking that they are valid. ........ r69516 | hirokazu.yamamoto | 2009-02-10 22:13:06 -0600 (Tue, 10 Feb 2009) | 2 lines Issue #5204: Define _PyVerify_fd on VC6 to make test_fdopen (test_os.py) pass. ........ r69757 | raymond.hettinger | 2009-02-18 23:34:35 -0600 (Wed, 18 Feb 2009) | 1 line Add some cross-references to the docs. Simplify the python code equivalent for izip(). Supply an optional argument for the nth() recipe. ........ r69761 | raymond.hettinger | 2009-02-18 23:51:41 -0600 (Wed, 18 Feb 2009) | 1 line Add an example for math.fsum() and elaborate on the accurary note. ........ r69765 | raymond.hettinger | 2009-02-19 00:55:03 -0600 (Thu, 19 Feb 2009) | 1 line Add links to helpful external resources. ........ r69770 | raymond.hettinger | 2009-02-19 03:50:24 -0600 (Thu, 19 Feb 2009) | 1 line Inline coefficients in gamma(). Add reflection formula. Add comments. ........ r69772 | vinay.sajip | 2009-02-19 06:31:32 -0600 (Thu, 19 Feb 2009) | 1 line #5287: Add exception handling around findCaller() call to help out IronPython. ........ r69777 | jeroen.ruigrok | 2009-02-19 12:52:21 -0600 (Thu, 19 Feb 2009) | 3 lines Since we recommend one module per import line, reflect this also in the documentation. ........ r69795 | benjamin.peterson | 2009-02-19 21:31:23 -0600 (Thu, 19 Feb 2009) | 1 line revert r69777 since all the experts agree that extra import lines distract from the code ........
* fix None errno #5312Benjamin Peterson2009-02-202-3/+3
|
* #5306: Fix compilation on Windows by properly merging change 69495.Amaury Forgeot d'Arc2009-02-192-3/+127
| | | | | | | | | + fixed an obvious merge glitch in a windows-only test. Patch by Hirokazu Yamamoto. I added a _PyVerify_fd() call to os.device_encoding() (new in python 3.0) which also uses a raw file descriptor.
* #5287: Add exception handling around findCaller() call to help out IronPython.Vinay Sajip2009-02-192-7/+15
|
* Inline coefficients in gamma(). Add reflection formula. Add comments.Raymond Hettinger2009-02-191-10/+18
|
* Regenerate with autoconf 2.61.Martin v. Löwis2009-02-192-5635/+4771
|
* Add links to helpful external resources.Raymond Hettinger2009-02-192-0/+7
|
* Add an example for math.fsum() and elaborate on the accurary note.Raymond Hettinger2009-02-191-8/+12
|
* Add some cross-references to the docs. Simplify the python code equivalent ↵Raymond Hettinger2009-02-193-11/+16
| | | | for zip(). Supply an optional argument for the nth() recipe.
* Merged revisions ↵Benjamin Peterson2009-02-1911-26/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 69576,69579-69580,69589,69619-69620,69633,69703-69704,69728-69730 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r69576 | georg.brandl | 2009-02-13 04:56:50 -0600 (Fri, 13 Feb 2009) | 1 line #1661108: note that urlsafe encoded string can contain "=". ........ r69579 | georg.brandl | 2009-02-13 05:06:59 -0600 (Fri, 13 Feb 2009) | 2 lines Fix warnings GCC emits where the argument of PyErr_Format is a single variable. ........ r69580 | georg.brandl | 2009-02-13 05:10:04 -0600 (Fri, 13 Feb 2009) | 2 lines Fix warnings GCC emits where the argument of PyErr_Format is a single variable. ........ r69589 | martin.v.loewis | 2009-02-13 14:11:34 -0600 (Fri, 13 Feb 2009) | 2 lines Move amd64 properties further to the top, so that they override the linker options correctly. ........ r69619 | benjamin.peterson | 2009-02-14 11:00:51 -0600 (Sat, 14 Feb 2009) | 1 line this needn't be a shebang line ........ r69620 | georg.brandl | 2009-02-14 11:01:36 -0600 (Sat, 14 Feb 2009) | 1 line #5179: don't leak PIPE fds when child execution fails. ........ r69633 | hirokazu.yamamoto | 2009-02-15 03:19:48 -0600 (Sun, 15 Feb 2009) | 1 line Fixed typo. ........ r69703 | raymond.hettinger | 2009-02-16 16:42:54 -0600 (Mon, 16 Feb 2009) | 3 lines Issue 5229: Documentation for super() neglects to say what super() actually does ........ r69704 | raymond.hettinger | 2009-02-16 17:00:25 -0600 (Mon, 16 Feb 2009) | 1 line Add explanation for super(type1, type2). ........ r69728 | georg.brandl | 2009-02-17 18:22:55 -0600 (Tue, 17 Feb 2009) | 2 lines #5297: fix example. ........ r69729 | georg.brandl | 2009-02-17 18:25:13 -0600 (Tue, 17 Feb 2009) | 2 lines #5296: sequence -> iterable. ........ r69730 | georg.brandl | 2009-02-17 18:31:36 -0600 (Tue, 17 Feb 2009) | 2 lines #5268: mention VMSError. ........