> 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. -Michel