Author bar.harel
Recipients bar.harel
Date 2016-05-27.21:29:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464384542.41.0.303372176211.issue27141@psf.upfronthosting.co.za>
In-reply-to
Content
I have encountered a weird behavior in collections.UserList.
Using copy.copy() on an instance results in a new instance of UserList but with the same underlying list. Seems like self.copy() works great but __copy__ was not overridden to allow copy.copy to work too.
The patch just assigns __copy__ to self.copy triggering the correct behavior.
History
Date User Action Args
2016-05-27 21:29:02bar.harelsetrecipients: + bar.harel
2016-05-27 21:29:02bar.harelsetmessageid: <1464384542.41.0.303372176211.issue27141@psf.upfronthosting.co.za>
2016-05-27 21:29:02bar.harellinkissue27141 messages
2016-05-27 21:29:01bar.harelcreate