Message1815
The special PySequence method pyget is used instead of __getitem__ in iterators return by __iter__ from PySequences. PySequence is used in the implementation of str, list and various other sequence like objects. If one of these types is subclassed in python code and the subclass overrides the __getitem__ method, the iterator returned by __iter__ doesn't go through the new __getitem__ method.
This was causing a test_builtin to fail when testing filter as it was expecting filtering on a subclass of list to go through __getitem__ by virtue of going through its __iter__ method. That failing test case has been disabled for now as explained in http://wiki.python.org/jython/JythonDeveloperGuide/VersionTransitionTestExclusions |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:57 | admin | link | issue1768970 messages |
2008-02-20 17:17:57 | admin | create | |
|