Message1847

Author janne_h
Recipients
Date 2007-08-17.11:47:29
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
When importing java class with import,
type of its methods is 'method'.
When the same class is imported with __import__ statement, type of its methods is 'reflectedfunction'

Jython 2.2rc3 on java1.6.0_01
Type "copyright", "credits" or "license" for more information.
>>> from java.lang import String
>>> type(String().indexOf)
<type 'method'>
>>> clazz = __import__('java.lang.String', {}, {}, 'String')
>>> type(clazz.indexOf)
<type 'reflectedfunction'>
History
Date User Action Args
2008-02-20 17:17:59adminlinkissue1776172 messages
2008-02-20 17:17:59admincreate