• Raymond Hettinger's avatar
    SF bug 665835: filter() treatment of str and tuple inconsistent · 9928571f
    Raymond Hettinger authored
    As a side issue on this bug, it was noted that list and tuple iterators
    used macros to directly access containers and would not recognize
    __getitem__ overrides.  If the method is overridden, the patch returns
    a generic sequence iterator which calls the __getitem__ method; otherwise,
    it returns a high custom iterator with direct access to container elements.
    9928571f
tupleobject.c 18.3 KB