Message17783
Logged In: YES
user_id=583457
Two comments:
1. The credit for discovering this "issue" goes to Bjorn
Pettersen, not to me.
2. The issue is NOT with metaclasses, the title should
be "special methods and __getattr__"
The metaclass works perfectly fine and
X.__iter__(x)
works. The problem is with the "iter" builtin, since
iter(x) DOES NOT call X.__iter__(x).
Same with str, len, etc.
Metaclasses are not guilty here!
Michele |
|
Date |
User |
Action |
Args |
2007-08-23 14:16:07 | admin | link | issue789262 messages |
2007-08-23 14:16:07 | admin | create | |
|