Message23129
Logged In: YES
user_id=6133
OK, I didn't find anything documenting this change anywhere (obviously).
I read Guido's description of new-classes (www.python.org/2.2/descrintro.py)
and the various documentation, but either I overlooked it therein or it's talked
about somewhere else.
I'm curious as to why special methods are treated specially in regards to this
lookup. Specifically for your example, why wouldn't you just use the
__repr__ attribute of o if it exists, instead of o's class, just like it does for
non-special methods? Can you briefly explain this or provide me with a
reference?
Leaving this closed is OK with me since it's apparently known and expected...
I'd just like to understand it a bit better. Sorry for the bandwidth, and Thanks!
|
|
Date |
User |
Action |
Args |
2007-08-23 14:27:27 | admin | link | issue1066490 messages |
2007-08-23 14:27:27 | admin | create | |
|