Re: Syntactic structure for 'until :' loop

2011-01-11 Thread eblume
On Jan 11, 6:53 pm, Ian Kelly wrote: > On 1/11/2011 7:22 PM, eblume wrote: > > > > > reader_iter = iter(self.reader) > headers = reader_iter.next() > # intermediate code > for line in reader_iter: >      data.append(line) > return data > > Also note that r

Syntactic structure for 'until :' loop

2011-01-11 Thread eblume
I'm still quite new to Python and I'm probably going about this entirely the wrong way, but it recently struck me that there might be the need for a control flow loop based on exception handling. First let me give the proposed syntax: until : do_something() This would be exactly equivalent to