On Saturday, January 31, 2015 at 7:08:28 AM UTC-8, Volker Braun wrote: > > I don't know, but have you tried gc.get_referrers? This is usually easy to > figure out. >
You'd first have to get a hold of the object, though. You could in principle do that by holding a weakref before deleting it, but especially in the command line you need to be careful because the history holds pointers too. It's probably easier to get a hold of the objects after the fact with L=[a for a in gc.get_objects() if str(type(a))="gp_interface_object"] or something similar. If you then use get_referrers afterwards, L will be in the list, of course. The package objgraph has a lot of functionality and can draw reference graphs in various ways: objgraph.show_backrefs([x], filename='sample-backref-graph.png') usually gives you the answer in a picture right away -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.