Almar Klein wrote:
Ah, it does exist! I wish I knew that two months ago, it would've saved me
some precious time ;)

The trick works only for objects that are tracked by CPython's garbage collector. Simple and non-containerish objects like str, int, unicode and some other types aren't tracked by the gc. IIRC all types written in Python are gc-aware.

Christian

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to