Leakage vs Cyclops

Martin v. Löwis martin at v.loewis.de
Sun Jan 5 06:10:19 EST 2003


Robin Becker <robin at jessikat.fsnet.co.uk> writes:

> This has been interesting for one simple reason, there seems to be no
> way to determine the total allocation when I do stupid things like throw
> away refs to undecremented PyObjects. 
> 
> The python system knows about the memory, but the ordinary user can't
> get at the blocks/total allocation for testing purposes. 

That is not true. In the debug version, Python maintains a complete of
all objects ever allocated (and not yet released). Since this is
expensive, it is only available in the debug version.

What kind of memory flew out the leak that you have now found?

Regards,
Martin




More information about the Python-list mailing list