mgedmin / objgraph

Visually explore Python object graphs
http://mg.pov.lt/objgraph/
MIT License
753 stars 72 forks source link

Convenience wrappers for show_backref_chain(obj, inspect.ismodule) #3

Open mgedmin opened 10 years ago

mgedmin commented 10 years ago

Using objgraph.show_chain(objgraph.find_backref_chain(...)) is a lot of typing. Provide convenience wrappers.

mgedmin commented 9 years ago

One of the goals of #5 is to make queries like this fall out naturally from the new-and-improved API design. Hmm.

>>> g = objgraph.why_alive(obj)
>>> g.show()