[Python-Dev] The Trick

Michel Pelletier michel at dialnetwork.com
Sat Oct 18 15:43:52 EDT 2003

> I don't like the trick of avoiding the copy if
> the refcount is one;
> AFAIK it can't be done in Jython.

It may be possible with the java.lang.ref
package using a somewhat similar trick by (I
imagine) holding a soft reference and examining
the object's rechability to the collector.

More information about the Python-Dev mailing list