summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 70546 via svnmerge fromAntoine Pitrou2009-03-233-0/+190
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70546 | antoine.pitrou | 2009-03-23 19:41:45 +0100 (lun., 23 mars 2009) | 9 lines Issue #4688: Add a heuristic so that tuples and dicts containing only untrackable objects are not tracked by the garbage collector. This can reduce the size of collections and therefore the garbage collection overhead on long-running programs, depending on their particular use of datatypes. (trivia: this makes the "binary_trees" benchmark from the Computer Language Shootout 40% faster) ........
* Make imported name private and wrap long-line.Raymond Hettinger2009-03-231-3/+4
|
* Forward port r70533 and r70538.Raymond Hettinger2009-03-231-32/+45
|
* Merged revisions 70523 via svnmerge fromLars Gustäbel2009-03-222-5/+29
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70523 | lars.gustaebel | 2009-03-22 21:09:33 +0100 (Sun, 22 Mar 2009) | 5 lines Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop forever on incomplete input. That caused tarfile.open() to hang when used with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or partial bzip2 compressed data. ........
* port the queue change r70405Benjamin Peterson2009-03-211-8/+8
|
* Merged revisions ↵Benjamin Peterson2009-03-212-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70342,70385-70387,70389-70390,70392-70393,70395,70400,70405-70406,70418,70438,70464,70468 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70342 | georg.brandl | 2009-03-13 14:03:58 -0500 (Fri, 13 Mar 2009) | 1 line #5486: typos. ........ r70385 | benjamin.peterson | 2009-03-15 09:38:55 -0500 (Sun, 15 Mar 2009) | 1 line fix tuple.index() error message #5495 ........ r70386 | georg.brandl | 2009-03-15 16:32:06 -0500 (Sun, 15 Mar 2009) | 1 line #5496: fix docstring of lookup(). ........ r70387 | georg.brandl | 2009-03-15 16:37:16 -0500 (Sun, 15 Mar 2009) | 1 line #5493: clarify __nonzero__ docs. ........ r70389 | georg.brandl | 2009-03-15 16:43:38 -0500 (Sun, 15 Mar 2009) | 1 line Fix a small nit in the error message if bool() falls back on __len__ and it returns the wrong type: it would tell the user that __nonzero__ should return bool or int. ........ r70390 | georg.brandl | 2009-03-15 16:44:43 -0500 (Sun, 15 Mar 2009) | 1 line #5491: clarify nested() semantics. ........ r70392 | georg.brandl | 2009-03-15 16:46:00 -0500 (Sun, 15 Mar 2009) | 1 line #5488: add missing struct member. ........ r70393 | georg.brandl | 2009-03-15 16:47:42 -0500 (Sun, 15 Mar 2009) | 1 line #5478: fix copy-paste oversight in function signature. ........ r70395 | georg.brandl | 2009-03-15 16:51:48 -0500 (Sun, 15 Mar 2009) | 1 line #5276: document IDLESTARTUP and .Idle.py. ........ r70400 | georg.brandl | 2009-03-15 16:59:37 -0500 (Sun, 15 Mar 2009) | 3 lines Fix markup in re docs and give a mail address in regex howto, so that the recommendation to send suggestions to the author can be followed. ........ r70405 | georg.brandl | 2009-03-15 17:11:07 -0500 (Sun, 15 Mar 2009) | 7 lines Move the previously local import of threading to module level. This is cleaner and avoids lockups in obscure cases where a Queue is instantiated while the import lock is already held by another thread. OKed by Tim Peters. ........ r70406 | hirokazu.yamamoto | 2009-03-15 17:43:14 -0500 (Sun, 15 Mar 2009) | 1 line Added skip for old MSVC. ........ r70418 | georg.brandl | 2009-03-16 14:42:03 -0500 (Mon, 16 Mar 2009) | 1 line Add token markup. ........ r70438 | benjamin.peterson | 2009-03-17 15:29:51 -0500 (Tue, 17 Mar 2009) | 1 line I thought this was begging for an example ........ r70464 | benjamin.peterson | 2009-03-18 15:58:09 -0500 (Wed, 18 Mar 2009) | 1 line a much better example ........ r70468 | benjamin.peterson | 2009-03-18 22:04:31 -0500 (Wed, 18 Mar 2009) | 1 line close files after comparing them ........
* - Issue #5463: In struct module, remove deprecated overflow wrappingMark Dickinson2009-03-211-11/+1
| | | | | | | when packing an integer: for example, struct.pack('=L', -1) now raises struct.error instead of returning b'\xff\xff\xff\xff'. Thanks Andreas Schawo for the patch.
* Document import's semantics for the language reference. This includes fillingBrett Cannon2009-03-211-7/+0
| | | | in missing details for the sys module.
* stringio doesn't have an encodingBenjamin Peterson2009-03-212-1/+5
|
* Fix typoRaymond Hettinger2009-03-191-2/+2
|
* Forward port 70475: Add implementation notes. Put methods in more readable ↵Raymond Hettinger2009-03-191-13/+25
| | | | order.
* Forward port r70470 and r70473 for OrderedDict to use a doubly linked list.Raymond Hettinger2009-03-192-15/+34
|
* svnmerge from trunk for r70457 (sorry, I accidentally deleted the commit ↵Antoine Pitrou2009-03-181-1/+1
| | | | message)
* Issue #4258: Make it possible to use 30-bit digits for PyLongs:Mark Dickinson2009-03-182-10/+44
| | | | | | | - new configure option --enable-big-digits - new structseq sys.int_info giving information about the internal format By default, 30-bit digits are enabled on 64-bit machines but disabled on 32-bit machines.
* Merged revisions 70444 via svnmerge fromMark Dickinson2009-03-182-2/+23
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70444 | mark.dickinson | 2009-03-18 08:22:51 +0000 (Wed, 18 Mar 2009) | 3 lines Fix bug in _insert_thousands_sep: too much zero padding could be added for 'n' formats with non-repeating thousands-separator. ........
* Merged revisions 70439 via svnmerge fromMark Dickinson2009-03-172-86/+295
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70439 | mark.dickinson | 2009-03-17 23:03:46 +0000 (Tue, 17 Mar 2009) | 3 lines Issue #2110: Add support for thousands separator and 'n' format specifier to Decimal __format__ method. ........
* Merged revisions 70430 via svnmerge fromMark Dickinson2009-03-172-2/+8
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70430 | mark.dickinson | 2009-03-17 18:01:03 +0000 (Tue, 17 Mar 2009) | 3 lines Fix bug in Decimal __format__ method that swapped left and right alignment. ........
* Implement InspectLoader for FrozenImporter.Brett Cannon2009-03-154-9/+65
|
* Implement InspectLoader for BuiltinImporter.Brett Cannon2009-03-156-22/+80
|
* A few more docstring/API cleanups for importlib.Brett Cannon2009-03-154-53/+55
|
* Clean up docstring from importlib.util.module_for_loader.Brett Cannon2009-03-151-8/+8
|
* Merged revisions 70364 via svnmerge fromEric Smith2009-03-141-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70364 | eric.smith | 2009-03-14 07:57:26 -0400 (Sat, 14 Mar 2009) | 17 lines Issue 5237, Allow auto-numbered replacement fields in str.format() strings. For simple uses for str.format(), this makes the typing easier. Hopfully this will help in the adoption of str.format(). For example: 'The {} is {}'.format('sky', 'blue') You can mix and matcth auto-numbering and named replacement fields: 'The {} is {color}'.format('sky', color='blue') But you can't mix and match auto-numbering and specified numbering: 'The {0} is {}'.format('sky', 'blue') ValueError: cannot switch from manual field specification to automatic field numbering Will port to 3.1. ........
* Merged revisions 70356 via svnmerge fromAntoine Pitrou2009-03-142-33/+128
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70356 | antoine.pitrou | 2009-03-14 01:07:21 +0100 (sam., 14 mars 2009) | 3 lines Issue #1222: locale.format() bug when the thousands separator is a space character. ........
* Issue #5016: FileIO.seekable() could return False if the file positionAntoine Pitrou2009-03-131-0/+10
| | | | was negative when truncated to a C int. Patch by Victor Stinner.
* The error detection code in FileIO.close() could fail to reflect the `errno` ↵Antoine Pitrou2009-03-131-0/+15
| | | | value, and report it as -1 instead.
* Issue #5392: when a very low recursion limit was set, the interpreter wouldAntoine Pitrou2009-03-131-0/+42
| | | | abort with a fatal error after the recursion limit was hit twice.
* Finish properly hiding importlib implementation code.Brett Cannon2009-03-1212-55/+43
|
* Last big re-organization of importlib._bootstrap. Should actually be able to ↵Brett Cannon2009-03-121-172/+173
| | | | find something in the file now.
* Do a little bit of reorganization on importlib._bootstrap.Brett Cannon2009-03-121-58/+69
|
* Make utility code in importlib._bootstrap private.Brett Cannon2009-03-121-32/+32
|
* Define importlib.__init__.__all__.Brett Cannon2009-03-121-1/+3
|
* Merged revisions 70308 via svnmerge fromTarek Ziadé2009-03-111-0/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70308 | tarek.ziade | 2009-03-11 13:48:04 +0100 (Wed, 11 Mar 2009) | 1 line Issue #5472: Fixed distutils.test_util tear down ........
* Add a NOTE for importlib to fill in the docstrings for the ABCs.Brett Cannon2009-03-111-0/+2
|
* For collections.deque() objects, expose the maxlen parameter as a read-only ↵Raymond Hettinger2009-03-101-0/+10
| | | | attribute.
* Small optimization for corner case where maxlen==0.Raymond Hettinger2009-03-101-1/+18
|
* Implement importlib.util.set_loader: a decorator to automatically setBrett Cannon2009-03-106-11/+25
| | | | __loader__ on modules.
* Implement get_source for importlib.abc.PyLoader using source_path and get_data.Brett Cannon2009-03-103-10/+52
|
* Merged revisions ↵Benjamin Peterson2009-03-091-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 69998-69999,70002,70022-70023,70025-70026,70061,70086,70145,70171,70183,70188,70235,70244,70275,70281 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r69998 | benjamin.peterson | 2009-02-26 13:04:40 -0600 (Thu, 26 Feb 2009) | 1 line the startship is rather outdated now ........ r69999 | benjamin.peterson | 2009-02-26 13:05:59 -0600 (Thu, 26 Feb 2009) | 1 line comma ........ r70002 | andrew.kuchling | 2009-02-26 16:34:30 -0600 (Thu, 26 Feb 2009) | 1 line The curses panel library is now supported ........ r70022 | georg.brandl | 2009-02-27 10:23:18 -0600 (Fri, 27 Feb 2009) | 1 line #5361: fix typo. ........ r70023 | georg.brandl | 2009-02-27 10:39:26 -0600 (Fri, 27 Feb 2009) | 1 line #5363: fix cmpfiles() docs. Another instance where a prose description is twice as long as the code. ........ r70025 | georg.brandl | 2009-02-27 10:52:55 -0600 (Fri, 27 Feb 2009) | 1 line #5344: fix punctuation. ........ r70026 | georg.brandl | 2009-02-27 10:59:03 -0600 (Fri, 27 Feb 2009) | 1 line #5365: add quick look conversion table for different time representations. ........ r70061 | hirokazu.yamamoto | 2009-02-28 09:24:00 -0600 (Sat, 28 Feb 2009) | 1 line Binary flag is needed on windows. ........ r70086 | benjamin.peterson | 2009-03-01 21:35:12 -0600 (Sun, 01 Mar 2009) | 1 line fix a silly problem of caching gone wrong #5401 ........ r70145 | benjamin.peterson | 2009-03-03 16:51:57 -0600 (Tue, 03 Mar 2009) | 1 line making the writing more formal ........ r70171 | facundo.batista | 2009-03-04 15:18:17 -0600 (Wed, 04 Mar 2009) | 3 lines Fixed a typo. ........ r70183 | benjamin.peterson | 2009-03-04 18:17:57 -0600 (Wed, 04 Mar 2009) | 1 line add example ........ r70188 | hirokazu.yamamoto | 2009-03-05 03:34:14 -0600 (Thu, 05 Mar 2009) | 1 line Fixed memory leak on failure. ........ r70235 | benjamin.peterson | 2009-03-07 18:21:17 -0600 (Sat, 07 Mar 2009) | 1 line fix funky indentation ........ r70244 | martin.v.loewis | 2009-03-08 09:06:19 -0500 (Sun, 08 Mar 2009) | 2 lines Add Chris Withers. ........ r70275 | georg.brandl | 2009-03-09 11:35:48 -0500 (Mon, 09 Mar 2009) | 2 lines Add missing space. ........ r70281 | benjamin.peterson | 2009-03-09 15:38:56 -0500 (Mon, 09 Mar 2009) | 1 line gzip and bz2 are context managers ........
* Clean up importlib NOTES so it only contains short term goals.Brett Cannon2009-03-091-16/+0
|
* Introduce importlib.abc. The module contains various ABCs related to importsBrett Cannon2009-03-098-140/+555
| | | | | | | (mostly stuff specified by PEP 302). There are two ABCs, PyLoader and PyPycLoader, which help with implementing source and source/bytecode loaders by implementing load_module in terms of other methods. This removes a lot of gritty details loaders typically have to worry about.
* Remove a dead XXX comment.Brett Cannon2009-03-091-1/+0
|
* Fix importlib._bootstrap.PyPycLoader.load_module() to better handleBrett Cannon2009-03-091-3/+10
| | | | source/bytecode paths and what to do when they don't exist.
* hack StringIO's repr, so it doesn't give an encodingBenjamin Peterson2009-03-091-0/+5
|
* give TextIOWrapper a repr that tells you the encodingBenjamin Peterson2009-03-092-0/+9
|
* Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode.Brett Cannon2009-03-091-1/+5
|
* Minor changes to Python source base loader.Brett Cannon2009-03-081-3/+7
| | | | | | | Fixed a bug where 'self' was left off a method call. Was masked by the fact the source/bytecode loader subclass is always used. Cleaned up when the source path is fetched. Also made sure ImportError is raised when a source path cannot be found.
* Skip case-sensitivity tests for extension modules if _testcapi cannot be found.Brett Cannon2009-03-081-0/+2
|
* Add notice about strange behaviour of the bigmem testsAntoine Pitrou2009-03-071-0/+4
|
* Issue #3700: make test_bigmem py3k-compatible, and add bytes/bytearray testsAntoine Pitrou2009-03-072-278/+395
| | | | | (please note: some of the tests /do/ fail when run with a sufficiently large memory parameter (-M), perhaps because of the str/bytes/bytearray overhaul)
* bump version to 3.1a1v3.1a1Benjamin Peterson2009-03-072-2/+2
|