• Raymond Hettinger's avatar
    SF bug 665835: filter() treatment of str and tuple inconsistent · 9928571f
    Raymond Hettinger yazdı
    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
test_types.py 24.1 KB