summaryrefslogtreecommitdiff
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-01-23 16:08:34 +0000
committerBarry Warsaw <barry@python.org>2001-01-23 16:08:34 +0000
commit9667ed23c5f78be235522a1d5f39306bcb72f650 (patch)
tree10b098ee5a31170e3d91925dd6dcc4e3729567a5 /Python/getopt.c
parent5bb3be2ffeca3fde00365e418013cc28bc654031 (diff)
downloadcpython-git-9667ed23c5f78be235522a1d5f39306bcb72f650.tar.gz
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.
Diffstat (limited to 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions