Possible File iteration bug

Chris Angelico rosuav at gmail.com
Fri Jul 15 14:58:15 CEST 2011

On Fri, Jul 15, 2011 at 10:52 PM, Billy Mays <noway at nohow.com> wrote:
> Really what would be useful is some sort of PauseIteration Exception which
> doesn't close the generator when raised, but indicates to the looping header
> that there is no more data for now.

All you need is a sentinel yielded value (eg None).


More information about the Python-list mailing list