Re: [ZODB-Dev] Storage iterators and IndexError

2010-05-17 Thread Jim Fulton
On Sat, May 15, 2010 at 6:43 AM, Christian Theune c...@gocept.com 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

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 raise

Re: [ZODB-Dev] Storage iterators and IndexError

2010-05-15 Thread Hanno Schlichting
On Fri, May 14, 2010 at 8:43 PM, Jim Fulton j...@zope.com 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

[ZODB-Dev] Storage iterators and IndexError

2010-05-14 Thread Jim Fulton
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 raise a special exception that extends