I am investigating garbage collection issues in a Python app. What would be the best readable option to print out all variables referencing a specific instance?
2 Answers
Use the inspect module. This script helps if you just want to track down reference leaks:
http://mg.pov.lt/objgraph.py http://mg.pov.lt/blog/hunting-python-memleaks http://mg.pov.lt/blog/python-object-graphs.html
Comments
Try Finding objects' names, it prints all names that reference a given object.
1 Comment
Joel
At present, this link gives "500 Internal Server Error"