Message10895

Author zyasoft
Recipients Myles, zyasoft
Date 2016-08-16.22:21:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471386071.98.0.479289517048.issue2514@psf.upfronthosting.co.za>
In-reply-to
Content
Here's the relevant backing structure for subclasses in PyType:

    private Set<WeakReference<PyType>> subclasses = Generic.set();

Generic.set() in turn constructs the Set with a HashSet backing; synchronization is used on the subclasses for all usage of this set. So it would seem to be trivial to change this to using a LinkedHashSet instead to maintain original load order per Myles request to get the same behavior as CPython.

This code still will intersect with this other code I mentioned, but at least it's very much contained, with little to no risk I can see in making this change.
History
Date User Action Args
2016-08-16 22:21:11zyasoftsetmessageid: <1471386071.98.0.479289517048.issue2514@psf.upfronthosting.co.za>
2016-08-16 22:21:11zyasoftsetrecipients: + zyasoft, Myles
2016-08-16 22:21:11zyasoftlinkissue2514 messages
2016-08-16 22:21:11zyasoftcreate