OOP - iterable class: how to delete one of its objects ?
R.Wieser
address at not.available
Sat Nov 2 02:30:11 EDT 2019
Rhodri,
> Use weak references. A WeakSet
> (https://docs.python.org/3/library/weakref.html#weakref.WeakSet) is
> probably what you want.
Most likely! As a fresh freshling in regard to python I was not even
aware that a "copy object, but do not increment the reference count"
existed. Thank you.
Could cause some interresting "the object has disappeared!" problems when
you're not carefull with it though ... :-)
Regards,
Rudy Wieser
More information about the Python-list
mailing list