Message1343
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
|
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:37 | admin | link | issue1605019 messages |
| 2008-02-20 17:17:37 | admin | create | |
|