[issue7053] wrong overload of slot wrapper

2009-10-04 Thread Georg Brandl
Georg Brandl added the comment: Closing as "won't fix". -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue7053] wrong overload of slot wrapper

2009-10-04 Thread Trundle
Trundle added the comment: This is defined behaviour and no bug at all. Special methods are looked up in the type for new-style classes and not in the instance. Try changing ``self.__iter__=self.__str__`` to ``test1.__iter__ = self.__str__`` in your example (which will then raise a TypeError on

[issue7053] wrong overload of slot wrapper

2009-10-04 Thread Mattelaer
New submission from Mattelaer : wrong redirection of slot wrapper: class.__iter__=list.__iter__ doesn't work. (the __iter__ still refer to the one define in class) The file in attachment shows an example of this problem -- components: None files: test.py messages: 93522 nosy: omatt sev