1. 12 Şub, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Fix core dump whenever PyList_Reverse() was called. · b86c549c
      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.
      b86c549c
  2. 17 Ock, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Convert to rich comparisons: · 65e1cea6
      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.
      65e1cea6
  3. 03 Ock, 2001 1 kayıt (commit)
  4. 13 Ara, 2000 1 kayıt (commit)
  5. 26 Eyl, 2000 1 kayıt (commit)
  6. 01 Eyl, 2000 1 kayıt (commit)
  7. 24 Agu, 2000 1 kayıt (commit)
  8. 22 Agu, 2000 1 kayıt (commit)
  9. 13 Agu, 2000 1 kayıt (commit)
  10. 25 Tem, 2000 1 kayıt (commit)
  11. 15 Tem, 2000 1 kayıt (commit)
  12. 12 Tem, 2000 1 kayıt (commit)
  13. 09 Tem, 2000 1 kayıt (commit)
  14. 01 Tem, 2000 1 kayıt (commit)
  15. 30 Haz, 2000 3 kayıt (commit)
  16. 23 Haz, 2000 2 kayıt (commit)
    • Jeremy Hylton's avatar
      part 2 of Neil Schemenauer's GC patches: · d08b4c45
      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.
      d08b4c45
    • Jeremy Hylton's avatar
      Round 1 of Neil Schemenauer's GC patches: · 8caad49c
      Jeremy Hylton yazdı
      This patch adds the type methods traverse and clear necessary for GC
      implementation.
      8caad49c
  17. 18 Haz, 2000 1 kayıt (commit)
    • Andrew M. Kuchling's avatar
      Patch from /F: · 74042d6e
      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.
      74042d6e
  18. 15 Haz, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      Thomas Wouters <thomas@xs4all.net>: · 56780257
      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.
      56780257
  19. 01 Haz, 2000 2 kayıt (commit)
  20. 03 May, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Vladimir Marangozov's long-awaited malloc restructuring. · b18618da
      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.)
      b18618da
  21. 27 Nis, 2000 1 kayıt (commit)
  22. 13 Mar, 2000 2 kayıt (commit)
  23. 24 Şub, 2000 2 kayıt (commit)
  24. 20 Ock, 2000 1 kayıt (commit)
  25. 09 Haz, 1999 1 kayıt (commit)
  26. 19 Nis, 1999 1 kayıt (commit)
  27. 14 Ock, 1999 1 kayıt (commit)
  28. 09 Eki, 1998 1 kayıt (commit)
  29. 07 Eki, 1998 1 kayıt (commit)
  30. 30 Haz, 1998 1 kayıt (commit)
  31. 17 Haz, 1998 1 kayıt (commit)
    • Guido van Rossum's avatar
      Minor cleanup by Tim after my changes: · 4281258b
      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.
      4281258b
  32. 16 Haz, 1998 1 kayıt (commit)
    • Guido van Rossum's avatar
      Tim's latest, with some of my changes (also a TP suggestion) added: · 4c4e7df7
      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.)
      4c4e7df7
  33. 29 May, 1998 1 kayıt (commit)
  34. 28 May, 1998 1 kayıt (commit)