Re: [ZODB-Dev] Storage iterators and IndexError

2010-05-17 Thread Jim Fulton
On Sat, May 15, 2010 at 6:52 AM, Hanno Schlichting wrote: > On Fri, May 14, 2010 at 8:43 PM, Jim Fulton wrote: >> There's a test for storage iterators that verifies that they raise >> a special exception that extends StopIteration and IndexError. >> This makes storage iterators a bit harder to im

Re: [ZODB-Dev] Storage iterators and IndexError

2010-05-17 Thread Jim Fulton
On Sat, May 15, 2010 at 6:43 AM, Christian Theune wrote: > On 05/14/2010 08:43 PM, Jim Fulton wrote: >> The file storage iterator was implemented before Python had iterators. >> (Actually, Python previously had an iterator based on a corner >> of the sequence protocol, which FileStorage used.) >>

Re: [ZODB-Dev] Storage iterators and IndexError

2010-05-15 Thread Hanno Schlichting
On Fri, May 14, 2010 at 8:43 PM, Jim Fulton wrote: > There's a test for storage iterators that verifies that they raise > a special exception that extends StopIteration and IndexError. > This makes storage iterators a bit harder to implement than > necessary. > > Does anyone know of a reason why w

Re: [ZODB-Dev] Storage iterators and IndexError

2010-05-15 Thread Christian Theune
On 05/14/2010 08:43 PM, Jim Fulton wrote: > The file storage iterator was implemented before Python had iterators. > (Actually, Python previously had an iterator based on a corner > of the sequence protocol, which FileStorage used.) > > There's a test for storage iterators that verifies that they r