- 12 Şub, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This fixes SF bug #132008, reported by Warren J. Hack. The copyright for this patch (and this patch only) belongs to CNRI, as part of the (yet to be issued) 1.6.1 release. This is now checked into the HEAD branch. Tim will check in a test case to check for this specific bug, and an assertion in PyArgs_ParseTuple() to catch similar bugs in the future.
-
- 17 Ock, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
- sort's docompare() calls RichCompare(Py_LT). - list_contains(), list_index(), listcount(), listremove() call RichCompare(Py_EQ). - Get rid of list_compare(), in favor of new list_richcompare(). The latter does some nice shortcuts, like when == or != is requested, it first compares the lengths for trivial accept/reject. Then it goes over the items until it finds an index where the items differe; then it does more shortcut magic to minimize the number of additional comparisons. - Aligned the comments for large struct initializers.
-
- 03 Ock, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 13 Ara, 2000 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 26 Eyl, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
Add definitions of INT_MAX and LONG_MAX to pyport.h. Remove includes of limits.h and conditional definitions of INT_MAX and LONG_MAX elsewhere. This closes SourceForge patch #101659 and bug #115323.
-
- 01 Eyl, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This should match the situation in the 1.6b1 tree.
-
- 24 Agu, 2000 1 kayıt (commit)
-
-
Thomas Wouters yazdı
the list object supports this currently, but other candidates are gladly accepted (like arraymodule and such.)
-
- 22 Agu, 2000 1 kayıt (commit)
-
-
Jack Jansen yazdı
-
- 13 Agu, 2000 1 kayıt (commit)
-
-
- 25 Tem, 2000 1 kayıt (commit)
-
-
Thomas Wouters yazdı
Leave the actual #define in for API compatibility.
-
- 15 Tem, 2000 1 kayıt (commit)
-
-
Vladimir Marangozov yazdı
free() the GC pointer, not the object pointer.
-
- 12 Tem, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 09 Tem, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
-
- 01 Tem, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 30 Haz, 2000 3 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Jeremy Hylton yazdı
-
- 23 Haz, 2000 2 kayıt (commit)
-
-
Jeremy Hylton yazdı
This patch modifies the type structures of objects that participate in GC. The object's tp_basicsize is increased when GC is enabled. GC information is prefixed to the object to maintain binary compatibility. GC objects also define the tp_flag Py_TPFLAGS_GC.
-
Jeremy Hylton yazdı
This patch adds the type methods traverse and clear necessary for GC implementation.
-
- 18 Haz, 2000 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
this patch introduces PySequence_Fast and PySequence_Fast_GET_ITEM, and modifies the list.extend method to accept any kind of sequence.
-
- 15 Haz, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
The following patch adds "sq_contains" support to rangeobject, and enables the already-written support for sq_contains in listobject and tupleobject. The rangeobject "contains" code should be a bit more efficient than the current default "in" implementation ;-) It might not get used much, but it's not that much to add. listobject.c and tupleobject.c already had code for sq_contains, and the proper struct member was set, but the PyType structure was not extended to include tp_flags, so the object-specific code was not getting called (Go ahead, test it ;-). I also did this for the immutable_list_type in listobject.c, eventhough it is probably never used. Symmetry and all that.
-
- 01 Haz, 2000 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Fred Drake yazdı
Removed PyErr_BadArgument() calls and replaced them with more useful error messages.
-
- 03 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
-
- 27 Nis, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 13 Mar, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
Added wrapping macros to dictobject.c, listobject.c, tupleobject.c, frameobject.c, traceback.c that safely prevends core dumps on stack overflow. Macros and functions in object.c, object.h. The method is an "elevator destructor" that turns cascading deletes into tail recursive behavior when some limit is hit.
-
Guido van Rossum yazdı
with a twist: you have to define NO_STRICT_LIST_APPEND manually to enable multi-arg append().
-
- 24 Şub, 2000 2 kayıt (commit)
-
-
Guido van Rossum yazdı
format strings.
-
Guido van Rossum yazdı
diagnostics. *** INCOMPATIBLE CHANGE: This changes append(), remove(), index(), and *** count() to require exactly one argument -- previously, multiple *** arguments were silently assumed to be a tuple.
-
- 20 Ock, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
compilation on NT Alpha. Mostly added casts etc.
-
- 09 Haz, 1999 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 19 Nis, 1999 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 14 Ock, 1999 1 kayıt (commit)
-
-
Guido van Rossum yazdı
ints. (In theory, other variables should be widened to long as well, but this won't ever be needed, since the len of a list is still an int.)
-
- 09 Eki, 1998 1 kayıt (commit)
-
-
Barry Warsaw yazdı
-
- 07 Eki, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Noted by Greg Stein.
-
- 30 Haz, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 17 Haz, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
+ Took the "list" argument out of the other functions that no longer need it. This speeds things up a little more. + Small comment changes in accord with that. + Exploited the now-safe ability to cache values in the partitioning loop. Makes no timing difference on my flavor of Pentium, but this machine ran out of registers 12 iterations ago. It should yield a small speedup on a RISC machine, and not hurt in any case.
-
- 16 Haz, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
instead of testing whether the list changed size after each comparison, temporarily set the type of the list to an immutable list type. This should allow continued use of the list for legitimate purposes but disallows all operations that can change it in any way. (Changes to the internals of list items are not caught, of cause; that's not possible to detect, and it's not necessary to protect the sort code, either.)
-
- 29 May, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
the median-of-three code to get a few percent back.
-
- 28 May, 1998 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-