[Tutor] garbage collecting

Keith Winston keithwins at gmail.com
Wed Jan 8 22:09:36 CET 2014


On Wed, Jan 8, 2014 at 3:30 PM, Oscar Benjamin
<oscar.j.benjamin at gmail.com>wrote:

> The garbage collector has nothing to do with the memory usage of immutable
> types like ints. There are deallocated instantly when the last reference
> you hold is cleared (in CPython). So if you run out of memory because of
> them then it is because you're keeping them alive in your own code. Running
> the garbage collector with gc.collect cannot help with that.
>

Well that's sort of interesting... so it's different for mutables? huh.
Anyway, I think I got what I can reasonably hope to get from this question,
thanks to you and everyone!

-- 
Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140108/81a0c003/attachment.html>


More information about the Tutor mailing list