[Zope] Zope 2.6.2 Beta 3 Released
Jo Meder
jo@meder.de
Sun, 29 Jun 2003 00:36:31 +0200
Am 29.06.2003, 00:11 Uhr
schruhb Fernando Martins <fmartins@hetnet.nl>:
> Out of curiosity, what kind of Python code can have memory leaks?
For example code generating circular references of objects:
object A has reference to object B
object B has reference to object C
Up to now, if object A is deleted, object B could be deleted as well
as there are no more references to B. But now imagine that some code
leads to:
object C creates reference to object B
Now, when A is deleted, there are still references to B and references
to C, so neither of them can safely be deleted by a garbage collector
relying on reference counts. And thats what Python uses (at least the
last time I looked).
Jo.
--
Internetmanufaktur Jo Meder ---------------------- Berlin, Germany
http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33
Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45
10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97
Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt