Aquisition, __iter__ and __getitem__ in Zope 2.12.0a1
Bug #360761 reported by
ChrisW
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Andi Zeidler |
Bug Description
This shouldn't happen:
>>> class C(Implicit):
... l=[1,2,3]
... def __getitem__(self, i):
... return self.l[i]
...
>>> c=C()
>>> iter(c)
<iterator object at 0xb7dbb38c>
>>> list(_)
[1, 2, 3]
>>> c2=C().__of__(c)
>>> iter(c2)
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: __iter__
See this post:
http://
...for the change that causes the bug.
Changed in zope2: | |
status: | New → Confirmed |
Changed in zope2: | |
importance: | Undecided → Medium |
Changed in zope2: | |
status: | New → Confirmed |
To post a comment you must log in.
this has been fixed in http:// svn.zope. org/?view= rev&rev= 99191
chris, could you please verify (and hopefully also close)?