summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* * Add clearer comment to initialization code.Raymond Hettinger2009-03-192-3/+10
| | | | | | * Add optional argument to popitem() -- modeled after Anthon van der Neut's C version. * Fix method markup in docs.
* Issue 5381: Add object_pairs_hook to the json module.Raymond Hettinger2009-03-194-9/+51
|
* Improve implementation with better underlying data structureRaymond Hettinger2009-03-191-14/+26
| | | | | | for O(1) deletions. Big-Oh performance now the same as regular dictionaries. Uses a doubly-linked list instead of a list/seq to track insertion order.
* close files after comparing themBenjamin Peterson2009-03-191-9/+9
|
* Use mixin methods where possible. (2.7 only -- these don't all exist in 3.0)Raymond Hettinger2009-03-181-18/+7
|
* fix strange errors when setting attributes on tracebacks #4034Benjamin Peterson2009-03-181-8/+0
|
* Attempt to fix Solaris buildbot failure on test_localeAntoine Pitrou2009-03-181-1/+1
|
* Fix bug in _insert_thousands_sep: too much zero padding could beMark Dickinson2009-03-182-2/+23
| | | | added for 'n' formats with non-repeating thousands-separator.
* merge json library with simplejson 2.0.9 (issue 4136)Bob Ippolito2009-03-1712-410/+550
|
* Issue #2110: Add support for thousands separator and 'n' format specifierMark Dickinson2009-03-172-84/+299
| | | | to Decimal __format__ method.
* Fix bug in Decimal __format__ method that swapped left and rightMark Dickinson2009-03-172-2/+8
| | | | alignment.
* Added skip for old MSVC.Hirokazu Yamamoto2009-03-151-0/+4
|
* Move the previously local import of threading to module level.Georg Brandl2009-03-151-8/+8
| | | | | | | 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.
* Unicode format tests weren't actually testing unicode. This was probably due ↵Eric Smith2009-03-141-51/+51
| | | | to the original backport from py3k.
* Issue 5237, Allow auto-numbered replacement fields in str.format() strings.Eric Smith2009-03-142-6/+66
| | | | | | | | | | | | | | | | | 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.
* Issue #1222: locale.format() bug when the thousands separator is a space ↵Antoine Pitrou2009-03-142-33/+128
| | | | character.
* Issue #5472: Fixed distutils.test_util tear downTarek Ziadé2009-03-111-0/+2
|
* Require implementations for warnings.showwarning() support the 'line' argument.Brett Cannon2009-03-112-55/+0
| | | | | | Was a DeprecationWarning for not supporting it since Python 2.6. Closes issue #3652.
* 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
|
* Add a version tag to the decimal module.Raymond Hettinger2009-03-101-0/+2
|
* Fixed issue #2638: Show a window constructed with tkSimpleDialog.Dialog onlyGuilherme Polo2009-03-071-2/+6
| | | | | after it is has been populated and properly configured in order to prevent window flashing.
* Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string.Guilherme Polo2009-03-071-1/+1
|
* Issue #5394: removed > 2.3 syntax from distutils.msvc9compilerTarek Ziadé2009-03-072-16/+42
|
* mmap.resize for anonymous map is not working yet, so changed to real file ↵Hirokazu Yamamoto2009-03-051-15/+5
| | | | mapping...
* Issue #5385: Fixed mmap crash after resize failure on windows.Hirokazu Yamamoto2009-03-051-1/+33
| | | | | Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle because CreateFileMapping returns NULL when error occurs.
* Fixes issues 3883 and 5194Ronald Oussoren2009-03-046-12/+25
|
* Fix some more bugs caused by the backport from 3.x for importlib.Brett Cannon2009-03-042-34/+21
| | | | | Do a more exact copy of the final 3.x code to resolve bugs and add appropriate tests.
* Backport 70140, 70141, 70143, and 70144.Raymond Hettinger2009-03-032-5/+26
| | | | | Adds tests, switches from list to deque, fixes __reduce__ which was unnecessarily copying __keys.
* Issue #5179: Fixed subprocess handle leak on failure on windows.Hirokazu Yamamoto2009-03-031-32/+15
|
* Minor simplification.Raymond Hettinger2009-03-031-1/+1
|
* Make the underlying data structure more private.Raymond Hettinger2009-03-031-15/+19
|
* Beef-up tests.Raymond Hettinger2009-03-031-3/+6
|
* Backport 70111: Let configparser use ordered dicts by default.Raymond Hettinger2009-03-031-1/+7
|
* Backport 70106: Add OrderedDict support to collections.namedtuple().Raymond Hettinger2009-03-031-5/+5
|
* Backport PEP 372: OrderedDict()Raymond Hettinger2009-03-032-6/+285
|
* give httplib.IncompleteRead a more sane repr #4308Benjamin Peterson2009-03-022-2/+30
|
* removing the force-optimized option as discussed in #1533164Tarek Ziadé2009-03-022-43/+3
|
* Adds an optional flags argument to re.split, re.sub and re.subn to beGregory P. Smith2009-03-021-6/+6
| | | | consistent with the other re module functions.
* fix a silly problem of caching gone wrong #5401Benjamin Peterson2009-03-021-4/+8
|
* Fix 3k-style metaclass syntax in docstrings.Georg Brandl2009-02-281-3/+6
|
* Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} withJeffrey Yasskin2009-02-285-63/+42
| | | | | | POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
* Issue #1733986: Fixed mmap crash in accessing elements of second map objectHirokazu Yamamoto2009-02-281-0/+28
| | | | with same tagname but larger size than first map. (Windows)
* Issue #5386: mmap.write_byte didn't check map size, so it could cause bufferHirokazu Yamamoto2009-02-281-0/+32
| | | | overrun.
* Issues #1533164 and #5378: Added quiet and force-optimize options to ↵Tarek Ziadé2009-02-282-6/+179
| | | | Distutils bdist_rpm command
* Issue #5052: make Distutils compatible with 2.3 again.Tarek Ziadé2009-02-276-38/+183
|
* Give mapping views a usable repr.Raymond Hettinger2009-02-271-0/+3
|
* Fix a bug where code was trying to index an int. Left over from the situationBrett Cannon2009-02-272-4/+7
| | | | | | from using str.rpartition to str.rindex. Closes Issue5213.
* removed unused importTarek Ziadé2009-02-261-1/+1
|
* remove deprecated symtable.Symbol methodsBenjamin Peterson2009-02-262-31/+0
|