[Zope] odd iteration semantics in ZPT
Dieter Maurer
dieter@handshake.de
Wed, 8 May 2002 22:37:12 +0200
dman writes:
> ....
> I managed to track it down to the fact that
> __getitem__ is called twice with 0 as the index. The sequence of
> index values looks like : [0, 0, 1, 2, 3, 4, 5, 6, 7, 8]
> I can work around this anomaly by resetting my iterator every time the
> index is 0.
>
> Is this a bug in zope? (I expect that the bug is in ZTUtils/Iterator.py)
I do not call this a bug, because there is not spec that forbids to
call an index twice.
Dieter