[Fwd: while row = c.fetchone(): # syntax error???]

Just van Rossum just at letterror.com
Fri Aug 11 09:01:59 EDT 2000


I wrote:
> And now for the "official" Python idiom, which avoids duplication of the
> t = c.fetchone() line:
>
> while 1:
>     t = c.fetchone()
>     if not t:
>         break
>     --- # Very intelligent code goes here :)

And Pablo asked: 
> If that a joke, isn't it?

'fraid not...

Just



More information about the Python-list mailing list