[Zope-dev] iterating over class without __iter__ but with __getitem__ raises AttributeError:__iter__

Chris Withers chris at simplistix.co.uk
Mon Apr 13 12:58:08 EDT 2009


Hanno Schlichting wrote:
> The change you are interested in is probably:
> 
> http://svn.zope.org/Zope/trunk/lib/python/Acquisition/_Acquisition.c?rev=94905&r1=92577&r2=94905
> 
> Acquisition now proxy real iteration via __iter__ correctly (it didn't
> do that before). What is missing from that change is probably the
> fallback to the __getitem__ protocol, in case the class isn't a real
> iterator.

Yes, so this change introduced a bug. Who's the right person to fix it?
What's the right collector to report this in?

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list