summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Additional test for __reduce__.Raymond Hettinger2009-03-031-0/+8
|
* Now that __keys are fully hidden, switch the underlying structureRaymond Hettinger2009-03-031-2/+2
| | | | | to deque() which futher reduces the temptation to index or resort. Also, it is a bit faster for some cases.
* Merged revisions 70137 via svnmerge fromHirokazu Yamamoto2009-03-031-32/+15
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70137 | hirokazu.yamamoto | 2009-03-04 07:18:14 +0900 | 1 line Issue #5179: Fixed subprocess handle leak on failure on windows. ........
* Add another test.Raymond Hettinger2009-03-031-0/+9
|
* Fix-up __reduce__ which could not reach the __keys variable indirectly.'Raymond Hettinger2009-03-031-2/+6
|
* Make the underlying data structure more private.Raymond Hettinger2009-03-031-9/+13
|
* Give dict views a helpful __repr__.Raymond Hettinger2009-03-031-3/+3
|
* Fix bootstrapping problem where setup.py was using configparserRaymond Hettinger2009-03-031-2/+7
| | | | before _collections had been built.
* ignore the coding cookie in compile(), exec(), and eval() if the source is a ↵Benjamin Peterson2009-03-022-3/+9
| | | | string #4626
* Let configparser use ordered dicts by default.Raymond Hettinger2009-03-021-1/+2
|
* Merged revisions 70107 via svnmerge fromBenjamin Peterson2009-03-022-2/+30
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70107 | benjamin.peterson | 2009-03-02 16:41:42 -0600 (Mon, 02 Mar 2009) | 1 line give httplib.IncompleteRead a more sane repr #4308 ........
* Add OrderedDict support to collections.namedtuple().Raymond Hettinger2009-03-021-5/+5
|
* Missed my last update to __eq__ to check matching length.Raymond Hettinger2009-03-021-3/+2
|
* PEP 372: OrderedDict()Raymond Hettinger2009-03-022-5/+270
|
* Expose importlib.util.set___package__.Brett Cannon2009-03-023-22/+56
|
* Merged revisions 70094 via svnmerge fromTarek Ziadé2009-03-022-43/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70094 | tarek.ziade | 2009-03-02 06:38:44 +0100 (Mon, 02 Mar 2009) | 1 line removing the force-optimized option as discussed in #1533164 ........
* Merged revisions 70090 via svnmerge fromGregory P. Smith2009-03-021-6/+6
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70090 | gregory.p.smith | 2009-03-01 21:13:57 -0800 (Sun, 01 Mar 2009) | 3 lines Adds an optional flags argument to re.split, re.sub and re.subn to be consistent with the other re module functions. ........
* Merged revisions 70056 via svnmerge fromHirokazu Yamamoto2009-02-281-0/+28
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70056 | hirokazu.yamamoto | 2009-02-28 21:13:07 +0900 | 2 lines Issue #1733986: Fixed mmap crash in accessing elements of second map object with same tagname but larger size than first map. (Windows) ........
* Merged revisions 70052 via svnmerge fromHirokazu Yamamoto2009-02-281-0/+38
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70052 | hirokazu.yamamoto | 2009-02-28 19:31:54 +0900 | 2 lines Issue #5386: mmap.write_byte didn't check map size, so it could cause buffer overrun. ........
* Merged revisions 70049 via svnmerge fromTarek Ziadé2009-02-282-6/+179
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70049 | tarek.ziade | 2009-02-28 11:08:02 +0100 (Sat, 28 Feb 2009) | 1 line Issues #1533164 and #5378: Added quiet and force-optimize options to Distutils bdist_rpm command ........
* 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.