- 23 Mar, 2009 12 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
It seems my love of PEP 8 overrode the need for consistentcy
-
Benjamin Peterson authored
patch by myself #1034053
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
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)
-
Raymond Hettinger authored
-
Mark Dickinson authored
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.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Make links clearer by using a Link object instead of a list. Use proxy links to avoid circular references.
-
- 22 Mar, 2009 4 commits
-
-
Benjamin Peterson authored
-
Lars Gustäbel authored
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.
-
Benjamin Peterson authored
-
Matthias Klose authored
-
- 21 Mar, 2009 1 commit
-
-
Hirokazu Yamamoto authored
-
- 20 Mar, 2009 3 commits
-
-
Mark Dickinson authored
integer types T, not just those for which "unsigned T" is legal.
-
Raymond Hettinger authored
-
Mark Dickinson authored
Backport of r70459.
-
- 19 Mar, 2009 7 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
* Re-order methods so that those touching the underlying data structure come first and the derived methods come last.
-
Raymond Hettinger authored
* Add optional argument to popitem() -- modeled after Anthon van der Neut's C version. * Fix method markup in docs.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
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.
-
Benjamin Peterson authored
-
- 18 Mar, 2009 7 commits
-
-
Raymond Hettinger authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Antoine Pitrou authored
-
Mark Dickinson authored
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)
-
Hirokazu Yamamoto authored
If you use http://svn.python.org/projects/external/openssl-0.9.8g, Perl is not needed. This scheme was ported from PCBuild.
-
Mark Dickinson authored
added for 'n' formats with non-repeating thousands-separator.
-
- 17 Mar, 2009 4 commits
-
-
Bob Ippolito authored
-
Mark Dickinson authored
to Decimal __format__ method.
-
Benjamin Peterson authored
-
Mark Dickinson authored
alignment.
-
- 16 Mar, 2009 1 commit
-
-
Georg Brandl authored
-
- 15 Mar, 2009 1 commit
-
-
Hirokazu Yamamoto authored
-