bug?: exception and references
Michael Hudson
mwh21 at cam.ac.uk
Mon Jan 15 10:36:58 EST 2001
More information about the Python-list mailing list
Mon Jan 15 10:36:58 EST 2001
- Previous message (by thread): bug?: exception and references
- Next message (by thread): Python and ODBC?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Balazs Scheidler <bazsi at balabit.hu> writes: > Something thus holds a reference to the instance, even if it's deleted from > the local namespace of test1(), my question is what it might be? Something starting from sys.last_traceback, I'd think. > I'm using Python as an extension language, and I call the method using > PyObject_CallObject(), if an exception is raised in the function, nothing > frees up the object instance (because of the extra reference). It will get freed up eventually (ie. when the next exception gets raised). Or you could assign None to sys.last_traceback, or "del" that (I'm not sure what best practice is here). Cheers, M. -- If comp.lang.lisp *is* what vendors are relying on to make or break Lisp sales, that's more likely the problem than is the effect of any one of us on such a flimsy marketing strategy... -- Kent M Pitman, comp.lang.lisp
- Previous message (by thread): bug?: exception and references
- Next message (by thread): Python and ODBC?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list