Kristján V. Jónsson schrieb: > I am trying to insert a hook into python enabling a callback for all > just-created objects. The intention is to debug and find memory leaks, > e.g. by having the hook function insert the object into a WeakKeyDictionary. I'd like to point out that this isn't a python-dev question, but more appropriate for comp.lang.python (as it is of the "how do I x with Python?" kind). I would use a debug build, and use sys.getobjects to determine all objects and find leaks. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4