]> granicus.if.org Git - python/commit
Leak pluggin', bug fixin' and better documentin'. Specifically,
authorBarry Warsaw <barry@python.org>
Tue, 23 Jan 2001 16:08:34 +0000 (16:08 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 23 Jan 2001 16:08:34 +0000 (16:08 +0000)
commit9667ed23c5f78be235522a1d5f39306bcb72f650
tree10b098ee5a31170e3d91925dd6dcc4e3729567a5
parent5bb3be2ffeca3fde00365e418013cc28bc654031
Leak pluggin', bug fixin' and better documentin'.  Specifically,

module__doc__: Document the Warning subclass heirarchy.

make_class(): Added a "goto finally" so that if populate_methods()
fails, the return status will be -1 (failure) instead of 0 (success).

fini_exceptions(): When decref'ing the static pointers to the
exception classes, clear out their dictionaries too.  This breaks a
cycle from class->dict->method->class and allows the classes with
unbound methods to be reclaimed.  This plugs a large memory leak in a
common Py_Initialize()/dosomething/Py_Finalize() loop.
Python/exceptions.c