Message8054

Author wchang
Recipients wchang
Date 2013-06-28.15:36:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372433772.82.0.960403887394.issue2064@psf.upfronthosting.co.za>
In-reply-to
Content
I'm using type to create an anonymous class using type() on jython 2.7

However when I do the following it doesn't work.

e.g.

>>> c = type("test_c1",(java.io.File,),{})
>>> isinstance(c,java.io.File)
False
>>> d=type("test_i1",(java.io.FilenameFilter,),{})
>>> isinstance(d,java.io.FilenameFilter)
False
History
Date User Action Args
2013-06-28 15:36:12wchangsetmessageid: <1372433772.82.0.960403887394.issue2064@psf.upfronthosting.co.za>
2013-06-28 15:36:12wchangsetrecipients: + wchang
2013-06-28 15:36:12wchanglinkissue2064 messages
2013-06-28 15:36:12wchangcreate