summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* update from CVSBenjamin Peterson2009-03-231-1/+1
|
* forgot to document that setUp can be skipped (silly me...)Benjamin Peterson2009-03-231-2/+5
|
* refactor unittest docsBenjamin Peterson2009-03-231-389/+413
|
* comply with the evilJavaNamingScheme for attribute namesBenjamin Peterson2009-03-233-11/+11
| | | | It seems my love of PEP 8 overrode the need for consistentcy
* implement test skipping and expected failuresBenjamin Peterson2009-03-234-26/+443
| | | | patch by myself #1034053
* complain when there's no last exceptionBenjamin Peterson2009-03-231-0/+2
|
* revert r70552; wrong fixBenjamin Peterson2009-03-231-5/+5
|
* fix very old names for exception terms #5543Benjamin Peterson2009-03-231-5/+5
|
* The tracking statistics were actually too pessimisticAntoine Pitrou2009-03-232-3/+4
|
* Issue #4688: Add a heuristic so that tuples and dicts containing onlyAntoine Pitrou2009-03-2311-2/+401
| | | | | | | | | 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
|
* Issue #5512: speed up the long division algorithm for Python longs.Mark Dickinson2009-03-232-94/+156
| | | | | | | | | | | | | | | The basic algorithm remains the same; the most significant speedups come from the following three changes: (1) normalize by shifting instead of multiplying and dividing (2) the old algorithm usually did an unnecessary extra iteration of the outer loop; remove this. As a special case, this means that long divisions with a single-digit result run twice as fast as before. (3) make inner loop much tighter. Various benchmarks show speedups of between 50% and 150% for long integer divisions and modulo operations.
* Move initialization of root link to __init__.Raymond Hettinger2009-03-231-1/+2
|
* Add more comments. Improve variable names.Raymond Hettinger2009-03-231-32/+44
| | | | | | Make links clearer by using a Link object instead of a list. Use proxy links to avoid circular references.
* AttributeError can be thrown during recursion errorsBenjamin Peterson2009-03-221-1/+1
|
* Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loopLars Gustäbel2009-03-223-5/+34
| | | | | | 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.
* close the file even if an exception occurs #5536Benjamin Peterson2009-03-222-35/+42
|
* - Fix comment macro in python.manMatthias Klose2009-03-221-2/+2
|
* There is no macro named SIZEOF_SSIZE_T. Should use SIZEOF_SIZE_T instead.Hirokazu Yamamoto2009-03-211-1/+1
|
* Rewrite Py_ARITHMETIC_RIGHT_SHIFT so that it's valid for all signedMark Dickinson2009-03-201-7/+11
| | | | integer types T, not just those for which "unsigned T" is legal.
* Add MutableSet example.Raymond Hettinger2009-03-201-1/+6
|
* Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson2009-03-2017-64/+859
| | | | Backport of r70459.
* Fix typoRaymond Hettinger2009-03-191-2/+2
|
* * Add implementation notes.Raymond Hettinger2009-03-191-13/+25
| | | | | * Re-order methods so that those touching the underlying data structure come first and the derived methods come last.
* * Add clearer comment to initialization code.Raymond Hettinger2009-03-193-5/+20
| | | | | | * Add optional argument to popitem() -- modeled after Anthon van der Neut's C version. * Fix method markup in docs.
* Silence a compiler warning.Raymond Hettinger2009-03-191-1/+1
|
* Issue 5381: Add object_pairs_hook to the json module.Raymond Hettinger2009-03-197-23/+150
|
* 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
|
* a much better exampleBenjamin Peterson2009-03-181-18/+7
|
* fix strange errors when setting attributes on tracebacks #4034Benjamin Peterson2009-03-184-23/+22
|
* Attempt to fix Solaris buildbot failure on test_localeAntoine Pitrou2009-03-181-1/+1
|
* Issue 4474: On platforms with sizeof(wchar_t) == 4 andMark Dickinson2009-03-183-0/+105
| | | | | | | | | sizeof(Py_UNICODE) == 2, PyUnicode_FromWideChar now converts each character outside the BMP to the appropriate surrogate pair. Thanks Victor Stinner for the patch. (backport of r70452 from py3k to trunk)
* Updated openssl support on VC6. (openssl-0.9.6g is old, cannot compile with ↵Hirokazu Yamamoto2009-03-183-49/+89
| | | | | | | _ssl.c) If you use http://svn.python.org/projects/external/openssl-0.9.8g, Perl is not needed. This scheme was ported from PCBuild.
* 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-1713-543/+2391
|
* Issue #2110: Add support for thousands separator and 'n' format specifierMark Dickinson2009-03-173-84/+302
| | | | to Decimal __format__ method.
* I thought this was begging for an exampleBenjamin Peterson2009-03-171-0/+19
|
* Fix bug in Decimal __format__ method that swapped left and rightMark Dickinson2009-03-173-2/+11
| | | | alignment.
* Add token markup.Georg Brandl2009-03-161-1/+1
|
* 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.
* Fix markup in re docs and give a mail address in regex howto, so thatGeorg Brandl2009-03-152-2/+2
| | | | the recommendation to send suggestions to the author can be followed.
* #5469: add with statement to list of name-binding constructs.Georg Brandl2009-03-151-3/+4
|
* #5276: document IDLESTARTUP and .Idle.py.Georg Brandl2009-03-151-0/+18
|
* #5478: fix copy-paste oversight in function signature.Georg Brandl2009-03-151-1/+1
|
* #5488: add missing struct member.Georg Brandl2009-03-151-0/+1
|
* #5491: clarify nested() semantics.Georg Brandl2009-03-151-4/+5
|
* Fix a small nit in the error message if bool() falls back on __len__ and it ↵Georg Brandl2009-03-151-1/+5
| | | | returns the wrong type: it would tell the user that __nonzero__ should return bool or int.