Deleting objects on the fly

Dustan DustanGroups at gmail.com
Sat Aug 11 08:26:12 EDT 2007


On Aug 10, 1:49 pm, "Terry Reedy" <tjre... at udel.edu> wrote:
> "Campbell Barton" <cbar... at metavr.com> wrote in message
>
> news:46BC35F2.4070600 at metavr.com...| Michele Simionato wrote:
>
> | > Probably not, 'del x' just decrements the reference count,
>
> Or ashttp://docs.python.org/ref/del.html
> puts it, " Deletion of a name removes the binding of that name from the
> local or global namespace,"
>
> | del x will remove x from memory if nothing else is refering to it,
>
> This is implementation dependent: true for CPython, not for Jython, ??? for
> IronPython.

Wait a second; do you mean to say that in Jython, del x will never
remove x from memory? How do you free up RAM?




More information about the Python-list mailing list