Tag Archives: gc

Python Gotchas No. 2: Garbage Collection Oddities

Python is a garbage collected language. The garbage collector will collect orphaned objects. These are objects that have no references. If an object has a __del__ method, it will be called when that object is collected. Note however, that there … Continue reading

Posted in Programming, Python | Tagged , , , | 1 Comment

Python Tidbits

Memory Leaks With the advent of the Python’s garbage collector, it would seem that Python programs should not leak memory. However, this is not always the case. With just a bit of circular references, you can find yourself leaking quite … Continue reading

Posted in Programming, Python, Utility Functions | Tagged , , , , | Leave a comment