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

Andreas Jung lists at zopyx.com
Mon Apr 13 15:01:00 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13.04.2009 17:58 Uhr, Chris Withers wrote:
> 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?

Since Acquisition is a core module of Zope: the Zope 2 tracker on Launchpad.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknji+wACgkQCJIWIbr9KYxd5ACeO1Sx3ubk9laxtgJsS51w2YRf
UJkAnjUV/N52ZAH0KPI1vqZM7MMt0oHD
=hk9o
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090413/3cd7cb1f/attachment.vcf 


More information about the Zope-Dev mailing list