Message1343

Author leouserz
Recipients
Date 2006-12-20.21:51:35
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
oh yeah,

there are worlds of differences between CPython and Jythons bound and unbound methods:
Jython:
>>> class x:
...    def zoo(self):
...       print "Zoo"
>>> a = x.zoo
>>> dir(a)
['__dict__', '__doc__', '__name__', 'im_class', 'im_func', 'im_self']

Python:
>>> class z:
...    def mork(self):
...      print "mork"
...
>>> x = z.mork
['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__get__', '__get attribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'im_class', 'im_func', 'im_self']

leouser
History
Date User Action Args
2008-02-20 17:17:37adminlinkissue1605019 messages
2008-02-20 17:17:37admincreate