Reference cycles
Peter Otten
__peter__ at web.de
Sun Sep 24 12:23:20 EDT 2017
More information about the Python-list mailing list
Sun Sep 24 12:23:20 EDT 2017
- Previous message (by thread): Reference cycles
- Next message (by thread): Compiling Python for iOS 11
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steve D'Aprano wrote: > Is there a way to log when the garbage collector finds and collects a > reference cycle? > > I don't care about objects claimed by the reference counter, I only care > about cycles. I don't know, and I don't think so. Would a structure like a --- b --- c | | | d --- e --- f count as one, or two, or three cycles? If you have a clear answer to that you can save the collected objects in gc.garbage and count the cycles yourself.
- Previous message (by thread): Reference cycles
- Next message (by thread): Compiling Python for iOS 11
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list