On Sunday 15 September 2024 at 10:46:06 UTC-7 marc....@gmail.com wrote:

> You can grab one of those objects on the heap and look at its 
backreference graph 

How does one do that? 


You can grab one of the objects:

next(a for a in gc.get_objects() if id(a) not in pre and str(type(a)) == 
"<type you want>")

(if your type doesn't nail down the objects completely you may want a 
little more than just the next object from this generator)

from there, https://pypi.org/project/objgraph/ . The author has linked some 
blogposts to illustrate how to use these tools to find memory links
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/6ee3bba6-c843-4892-b48f-b37147f076b3n%40googlegroups.com.

Reply via email to