summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 70017 via svnmerge fromTarek Ziadé2009-02-276-38/+183
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70017 | tarek.ziade | 2009-02-27 13:53:34 +0100 (Fri, 27 Feb 2009) | 1 line Issue #5052: make Distutils compatible with 2.3 again. ........
* Give mapping views a usable repr.Raymond Hettinger2009-02-271-0/+3
|
* Merged revisions 70003 via svnmerge fromTarek Ziadé2009-02-261-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70003 | tarek.ziade | 2009-02-27 00:44:00 +0100 (Fri, 27 Feb 2009) | 1 line removed unused import ........
* Merged revisions 69811,69947 via svnmerge fromBenjamin Peterson2009-02-261-0/+6
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69811 | collin.winter | 2009-02-20 13:30:41 -0600 (Fri, 20 Feb 2009) | 2 lines Issue 5176: special-case string formatting in BINARY_MODULO implementation. This shows a modest (1-3%) speed-up in templating systems, for example. ........ r69947 | jeffrey.yasskin | 2009-02-24 16:48:34 -0600 (Tue, 24 Feb 2009) | 3 lines Tools/scripts/analyze_dxp.py, a module with some helper functions to analyze the output of sys.getdxp(). ........
* Merged revisions 69803-69805,69840,69901,69905,69907,69924,69927,69987 via ↵Benjamin Peterson2009-02-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r69803 | georg.brandl | 2009-02-20 01:48:21 -0600 (Fri, 20 Feb 2009) | 1 line #5327: fix a broken link by joining it. ........ r69804 | georg.brandl | 2009-02-20 02:22:21 -0600 (Fri, 20 Feb 2009) | 1 line At least separate imports from other statements. ........ r69805 | georg.brandl | 2009-02-20 02:45:47 -0600 (Fri, 20 Feb 2009) | 2 lines Fix punctuation. ........ r69840 | georg.brandl | 2009-02-21 13:09:40 -0600 (Sat, 21 Feb 2009) | 1 line #5338, #5339: two types in the API manual. ........ r69901 | georg.brandl | 2009-02-23 05:24:46 -0600 (Mon, 23 Feb 2009) | 2 lines #5349: C++ pure virtuals can also have an implementation. ........ r69905 | georg.brandl | 2009-02-23 09:51:27 -0600 (Mon, 23 Feb 2009) | 2 lines #5352: str.count() counts non-overlapping instances. ........ r69907 | georg.brandl | 2009-02-23 12:33:48 -0600 (Mon, 23 Feb 2009) | 1 line Fix grammar. ........ r69924 | benjamin.peterson | 2009-02-23 20:45:35 -0600 (Mon, 23 Feb 2009) | 1 line update README on running tests ........ r69927 | neil.schemenauer | 2009-02-23 22:23:25 -0600 (Mon, 23 Feb 2009) | 1 line Fix call to os.waitpid, it does not take keyword args. ........ r69987 | benjamin.peterson | 2009-02-25 18:30:11 -0600 (Wed, 25 Feb 2009) | 1 line fix str.format()'s first arg #5371 ........
* Merged revisions 69976 via svnmerge fromTarek Ziadé2009-02-252-6/+4
| | | | | | | | | | 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 ........
* http://bugs.python.org/issue4715Jeffrey Yasskin2009-02-252-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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-241-10/+10
| | | | | | 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.
* 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 ........
* 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 ........
* 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 ........
* In Py3.x, a list comprehension is now faster than list(map(itemgetter(0), ↵Raymond Hettinger2009-02-211-5/+4
| | | | iterable)).
* Relocate source_mtime in importlib to PyPycLoader.Brett Cannon2009-02-211-13/+11
|
* Port r69837: Fix keyword arguments for itertools.count(). Step arg without a ↵Raymond Hettinger2009-02-211-0/+4
| | | | 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-2121-33/+33
| | | | | | | | | | 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 69415,69591,69593 via svnmerge fromBenjamin Peterson2009-02-202-6/+6
| | | | | | | | | | | | | | | | | | 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. ........
* fix None errno #5312Benjamin Peterson2009-02-202-3/+3
|
* #5306: Fix compilation on Windows by properly merging change 69495.Amaury Forgeot d'Arc2009-02-191-2/+2
| | | | | | | | | + 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-191-2/+7
|
* Inline coefficients in gamma(). Add reflection formula. Add comments.Raymond Hettinger2009-02-191-10/+18
|
* Add some cross-references to the docs. Simplify the python code equivalent ↵Raymond Hettinger2009-02-191-3/+3
| | | | for zip(). Supply an optional argument for the nth() recipe.
* Merged revisions ↵Benjamin Peterson2009-02-193-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........
* Add keyword arg support to itertools.repeat().Raymond Hettinger2009-02-191-0/+1
|
* Add keyword arg support to itertools.compress().Raymond Hettinger2009-02-191-0/+1
|
* Merged revisions 69714,69718 via svnmerge fromHirokazu Yamamoto2009-02-181-0/+25
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69714 | hirokazu.yamamoto | 2009-02-17 19:12:10 +0900 | 1 line Issue #5292: Fixed mmap crash on its boundary access m[len(m)]. ........ r69718 | hirokazu.yamamoto | 2009-02-17 22:17:26 +0900 | 3 lines Issue #5282: Fixed mmap resize on 32bit windows and unix. When offset > 0, The file was resized to wrong size. ........
* Merged revisions 69724 via svnmerge fromTarek Ziadé2009-02-172-3/+7
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69724 | tarek.ziade | 2009-02-18 00:06:51 +0100 (Wed, 18 Feb 2009) | 1 line fixed the data_files inclusion behavior ........
* Merged revisions 69710 via svnmerge fromTarek Ziadé2009-02-172-7/+23
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69710 | tarek.ziade | 2009-02-17 10:42:44 +0100 (Tue, 17 Feb 2009) | 1 line #2279 added the plain path case for data_files ........
* Outline a possible way to separate out source loading from bytecode loading.Brett Cannon2009-02-171-0/+21
|
* Implement the more specific PEP 302 semantics for loaders and what happens uponBrett Cannon2009-02-174-62/+126
| | | | | | load failure in relation to reloads. Also expose importlib.util.module_for_loader to handle all of the details of this along with making sure all current loaders behave nicely.
* Merged revisions 69693 via svnmerge fromTarek Ziadé2009-02-161-6/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69693 | tarek.ziade | 2009-02-16 22:41:54 +0100 (Mon, 16 Feb 2009) | 1 line #2279: use os.sep so the MANIFEST file test work on win32 ........
* Merged revisions 69692 via svnmerge fromTarek Ziadé2009-02-163-43/+129
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69692 | tarek.ziade | 2009-02-16 22:38:01 +0100 (Mon, 16 Feb 2009) | 1 line Fixed #2279: distutils.sdist.add_defaults now add files listed in package_data and data_files ........
* Add GC support to count() objects.Raymond Hettinger2009-02-161-0/+5
|
* remove another use of cmp()Benjamin Peterson2009-02-161-1/+6
|
* no 2.3 compat in the py3k lib #3676Benjamin Peterson2009-02-163-11/+1
|
* Removed message about compatibility with 2.3.Facundo Batista2009-02-161-7/+3
|
* Document importlib.machinery.PathFinder.Brett Cannon2009-02-161-1/+5
|
* Change importlib.machinery.PathFinder to not have implicit semantics (that'sBrett Cannon2009-02-153-57/+72
| | | | not handled by importlib._bootstrap._DefaultPathFinder).
* Add a NOTE about the new specific semantics for failed loads.Brett Cannon2009-02-151-0/+2
|