- 08 Mar, 2004 11 commits
-
-
Raymond Hettinger authored
* Defer error handling for wrong number of arguments to the unpack_iterable() function. Cuts the code size almost in half. * Replace function calls to PyList_Size() and PyTuple_Size() with their smaller and faster macro counterparts. * Move the constant structure references outside of the inner loops.
-
Brett Cannon authored
Side-effects were deemed unnecessary and were causing problems at shutdown time when threads were catching exceptions at start time and then triggering exceptions trying to call currentThread() after gc'ed. Masked the initial exception which was deemed bad. Fixes bug #754449 .
-
Raymond Hettinger authored
longer needed.
-
Raymond Hettinger authored
The writelines() method now accepts any iterable argument and writes the lines one at a time rather than using ''.join(lines) followed by a single write. Results in considerable memory savings and makes the method suitable for use with generator expressions.
-
Raymond Hettinger authored
The writelines() method now accepts any iterable argument and writes the lines one at a time rather than using ''.join(lines) followed by a single write. Results in considerable memory savings and makes the method suitable for use with generator expressions.
-
Kurt B. Kaiser authored
M ClassBrowser.py M ColorDelegator.py M EditorWindow.py M NEWS.txt M PyShell.py M TreeWidget.py M config-highlight.def M configDialog.py M configHandler.py
-
Vinay Sajip authored
-
Raymond Hettinger authored
and list.extend(). Factoring the inner loops to remove the constant structure references and fixed offsets gives speedups ranging from 20% to 30%.
-
Raymond Hettinger authored
the code by grouping common cases together.
-
Raymond Hettinger authored
* Using addition instead of substraction on array indices allows the compiler to use a fast addressing mode. Saves about 10%. * Using PyTuple_GET_ITEM and PyList_SET_ITEM is about 7% faster than PySequenceFast_GET_ITEM which has to make a list check on every pass.
-
Raymond Hettinger authored
-
- 07 Mar, 2004 2 commits
-
-
Brett Cannon authored
Since it is known ahead of time that UTC and GMT always have no DST adjustment then just set the isdst value to 0 even if tzname[0] == tzname[1] . Fixes bug #897817 .
-
Raymond Hettinger authored
Add a new opcode, LIST_APPEND, and apply it to the code generation for list comprehensions. Reduces the per-loop overhead by about a third.
-
- 05 Mar, 2004 1 commit
-
-
Skip Montanaro authored
-
- 04 Mar, 2004 3 commits
-
-
Raymond Hettinger authored
(Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments.
-
Raymond Hettinger authored
-
Hye-Shik Chang authored
is too expensive on FreeBSD's KSE threading infrastructure and even test_threadedimport fails on default setting.
-
- 03 Mar, 2004 4 commits
-
-
Skip Montanaro authored
* reverse order of files on the command line in pickle2db.py to make it symmetrical with db2pickle.py in the two-arg case (src, then dest)
-
Sjoerd Mullender authored
-
Skip Montanaro authored
-
Raymond Hettinger authored
documentation as well as the source code.
-
- 02 Mar, 2004 1 commit
-
-
Brett Cannon authored
are within proper boundaries as specified in the docs. This can break possible code (datetime module needed changing, for instance) that uses 0 for values that need to be greater 1 or greater (month, day, and day of year). Fixes bug #897625.
-
- 01 Mar, 2004 2 commits
-
-
Raymond Hettinger authored
__getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample().
-
Skip Montanaro authored
and add flag comments to ceval.c and main.c alerting people to the coupling between pystack and the layout of those files.
-
- 29 Feb, 2004 3 commits
-
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Raymond Hettinger authored
* Add doctests for the examples in the library reference. * Add two methods, left() and right(), modeled after deques in C++ STL. * Apply the new method to asynchat.py. * Add comparison operators to make deques more substitutable for lists. * Replace the LookupErrors with IndexErrors to more closely match lists.
-
- 28 Feb, 2004 7 commits
-
-
Jack Jansen authored
- Allow easy access to the PackMan homepage, for even more databases.
-
Jack Jansen authored
preferences object.
-
Jack Jansen authored
- Try not only "darwin-7.X.Y" but also "darwin-7.X" and "darwin-7", so far we've never had to create anew database for a minor release. - Distinguish between the various different installs (user-installed MacPython, apple-installed MacPython, other).
-
Vinay Sajip authored
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Neal Norwitz authored
-
- 27 Feb, 2004 1 commit
-
-
Raymond Hettinger authored
-
- 26 Feb, 2004 5 commits
-
-
Christian Tismer authored
if a function cannot be stored as global. This is for compatibility with pickle.py .
-
Marc-André Lemburg authored
-
Michael W. Hudson authored
-
Michael W. Hudson authored
float_richcompare. Reported on c.l.py by Helmut Jarausch.
-
Gregory P. Smith authored
* Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
-