Message10893

Author Myles
Recipients Myles
Date 2016-08-15.17:24:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471281895.32.0.509193531466.issue2514@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I'm using jython-standalone on maven, 2.7.0.

The output of class.__subclasses__() differs between Jython & Python.

In Python subclasses are in load order, in Jython the order is random.

I am attempting to run an application which loads files, then obtains the subclasses of the files by using __subclasses__()[-1]. Because it's not load order this causes the application to horrifically fail.

The application could be modified, but i'm in belief this should be fixed, I haven't looked into how complicated it is myself, so it might not be a walk in the park.
History
Date User Action Args
2016-08-15 17:24:55Mylessetrecipients: + Myles
2016-08-15 17:24:55Mylessetmessageid: <1471281895.32.0.509193531466.issue2514@psf.upfronthosting.co.za>
2016-08-15 17:24:55Myleslinkissue2514 messages
2016-08-15 17:24:54Mylescreate