1. 13 Mar, 2001 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Variety of small INC/DECREF patches that fix reported memory leaks · 30c9f399
      Jeremy Hylton yazdı
      with free variables.  Thanks to Martin v. Loewis for finding two of
      the problems.  This fixes SF buf 405583.
      
      There is also a C API change: PyFrame_New() is reverting to its
      pre-2.1 signature.  The change introduced by nested scopes was a
      mistake.  XXX Is this okay between beta releases?
      
      cell_clear(), the GC helper, must decref its reference to break
      cycles.
      
      frame_dealloc() must dealloc all cell vars and free vars in addition
      to locals.
      
      eval_code2() setup code must INCREF cells it copies out of the
      closure.
      
      The STORE_DEREF opcode implementation must DECREF the object it passes
      to PyCell_Set().
      30c9f399
  2. 25 Ock, 2001 1 kayıt (commit)
    • Jeremy Hylton's avatar
      PEP 227 implementation · fbd849f2
      Jeremy Hylton yazdı
      A cell contains a reference to a single PyObject.  It could be
      implemented as a mutable, one-element sequence, but the separate type
      has less overhead.
      fbd849f2