Message5948

Author zyasoft
Recipients juneau001, slucas, zyasoft
Date 2010-08-09.21:04:30
SpamBayes Score 7.82059e-08
Marked as misclassified No
Message-id <1281387872.55.0.270931438186.issue1551@psf.upfronthosting.co.za>
In-reply-to
Content
Added null versions of __copy__ and __deepcopy__ that raise a TypeError for Java classes not implementing Cloneable and Serializable respectively. Also I added a version of the Person test submitted by Sharon to test_java_integration.py

The globals problem observed is actually the result of the proxies not being configured properly, it doesn't have anything to do with globals itself, just accessing objects referenced by it.

Ideally immutable Java objects like java.lang.String should be copied too (Python semantics). Note this works for deepcopy.

Lastly, copy_reg which is somewhat related is no longer used by copy in CPython 2.5, so need to update our copy module support.

For these last two reasons, keeping this pending.
History
Date User Action Args
2010-08-09 21:04:32zyasoftsetmessageid: <1281387872.55.0.270931438186.issue1551@psf.upfronthosting.co.za>
2010-08-09 21:04:32zyasoftsetrecipients: + zyasoft, juneau001, slucas
2010-08-09 21:04:32zyasoftlinkissue1551 messages
2010-08-09 21:04:30zyasoftcreate