Message53547
| Author |
loewis |
| Recipients |
| Date |
2002年09月30日.10:03:51 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=21627
Reconsidering: It fails to work in the presence of
inheritance, right?
>>> class B:
... def foo(self):pass
...
>>> class D(B):pass
...
>>> d = D()
>>> m = d.foo
>>> m.im_self
<__main__.D instance at 0x1ccb28>
>>> m.__name__
'foo'
>>> D.__dict__['foo']
Traceback (most recent call last):
File "<stdin>", line 1, in ?
KeyError: foo
>>>
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 16:02:13 | admin | link | issue558238 messages |
| 2007年08月23日 16:02:13 | admin | create |
|