Message9822
| Author |
nobody |
| Recipients |
| Date |
2002年03月21日.09:47:10 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: NO
>>> a=A()
>>> a.foo
foo
__repr__ __call__ __call__ __call__ ... ad inf
This is normal behavior. The code at the top is buggy. The
correct one is:
class A:
def __getattr__(self, name):
if name == '__repr__':
return self.__repr__()
print name
return A() |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 13:59:56 | admin | link | issue532646 messages |
| 2007年08月23日 13:59:56 | admin | create |
|