Re: [Python-3000] Confused about getattr() and special methods

2007-09-04 Thread Thomas Wouters
On 9/4/07, Thomas Heller <[EMAIL PROTECTED]> wrote: > Shouldn't the __getattr__ implementation find the __iter__ method > of the _stream instance variable? No. For new-style classes, the special methods (that are part of the PyType C struct) are always looked up on the class, never the instance.

[Python-3000] Confused about getattr() and special methods

2007-09-04 Thread Thomas Heller
I was looking into the Lib\test\test_uuid on Windows, which fails with this traceback: test test_uuid failed -- Traceback (most recent call last): File "C:\buildbot\work\3.0.heller-windows\build\lib\test\test_uuid.py", line 323, in test_ipconfig_getnode node = uuid._ipconfig_getnode() Fi