Should I worry about circular references in Python?
Posted
by bodacydo
on Stack Overflow
See other posts from Stack Overflow
or by bodacydo
Published on 2010-03-11T20:11:28Z
Indexed on
2010/03/11
20:14 UTC
Read the original article
Hit count: 472
python
Suppose I have code that maintains parent/children structure. In such a structure I get circular references, where child points to parent and parent points to child. Should I worry about them? I'm using Python 2.5.
I am concerned that they will not be garbage collected and the application will eventually consume all memory.
Thanks, Boda Cydo.
© Stack Overflow or respective owner