Message288670
An addendum: I'd note that avoiding reference cycles altogether is hard in modern-day Python. For example, any dynamically-created class creates a reference cycle between the class and its MRO:
>>> import gc
>>> gc.disable()
>>> gc.collect()
0
>>> class A(object):
... pass
...
>>> del A
>>> gc.collect()
6 |
|
Date |
User |
Action |
Args |
2017-02-27 20:47:44 | mark.dickinson | set | recipients:
+ mark.dickinson, Kevin Mills |
2017-02-27 20:47:44 | mark.dickinson | set | messageid: <1488228464.79.0.0904986322439.issue29671@psf.upfronthosting.co.za> |
2017-02-27 20:47:44 | mark.dickinson | link | issue29671 messages |
2017-02-27 20:47:44 | mark.dickinson | create | |
|