• Guido van Rossum's avatar
    Add __del__ callbacks. They are too useful to leave out. · 7ad2d1eb
    Guido van Rossum yazdı
    XXX Remaining problems:
    
    - The GC module doesn't know about these; I think it has its reasons
      to disallow calling __del__, but for now, __del__ on new-style
      objects is called when the GC module discards an object, for better
      or for worse.
    
    - The code to call a __del__ handler is really ridiculously
      complicated, due to all the different debug #ifdefs.  I've copied
      this from the similar code in classobject.c, so I'm pretty sure I
      did it right, but it's not pretty. :-(
    
    - No tests yet.
    7ad2d1eb
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...