1. 04 Oct, 2001 21 commits
  2. 03 Oct, 2001 13 commits
  3. 02 Oct, 2001 6 commits
    • Guido van Rossum's avatar
      ed554f6f
    • Guido van Rossum's avatar
    • Tim Peters's avatar
      SF patch [#466616] Exclude imported items from doctest. · 4a9ac4a8
      Tim Peters authored
      Another installment; the new functionality wasn't actually enabled in
      normal use, only in the strained use checked by the test case.
      4a9ac4a8
    • Tim Peters's avatar
      SF bug [#467265] Compile errors on SuSe Linux on IBM/s390. · c15c4f1f
      Tim Peters authored
      Unknown whether this fixes it.
      - stringobject.c, PyString_FromFormatV:  don't assume that va_list is of
        a type that can be copied via an initializer.
      - errors.c, PyErr_Format:  add a va_end() to balance the va_start().
      c15c4f1f
    • Guido van Rossum's avatar
      Add Garbage Collection support to new-style classes (not yet to their · 048eb75c
      Guido van Rossum authored
      instances).
      
      Also added GC support to various auxiliary types: super, property,
      descriptors, wrappers, dictproxy.  (Only type objects have a tp_clear
      field; the other types are.)
      
      One change was necessary to the GC infrastructure.  We have statically
      allocated type objects that don't have a GC header (and can't easily
      be given one) and heap-allocated type objects that do have a GC
      header.  Giving these different metatypes would be really ugly: I
      tried, and I had to modify pickle.py, cPickle.c, copy.py, add a new
      invent a new name for the new metatype and make it a built-in, change
      affected tests...  In short, a mess.  So instead, we add a new type
      slot tp_is_gc, which is a simple Boolean function that determines
      whether a particular instance has GC headers or not.  This slot is
      only relevant for types that have the (new) GC flag bit set.  If the
      tp_is_gc slot is NULL (by far the most common case), all instances of
      the type are deemed to have GC headers.  This slot is called by the
      PyObject_IS_GC() macro (which is only used twice, both times in
      gcmodule.c).
      
      I also changed the extern declarations for a bunch of GC-related
      functions (_PyObject_GC_Del etc.): these always exist but objimpl.h
      only declared them when WITH_CYCLE_GC was defined, but I needed to be
      able to reference them without #ifdefs.  (When WITH_CYCLE_GC is not
      defined, they do the same as their non-GC counterparts anyway.)
      048eb75c
    • Tim Peters's avatar
      CVS patch [#466628] Doc changes for doctest patch (#466616), from · 0481d24d
      Tim Peters authored
      Tim Hochberg.  Doctest no longer searches imported objects.
      0481d24d