ChaosKCW wrote: > def resultset_functional_generator(cursor): > for�rec�in�iter(lambda:�cursor.fetchone(),�None): > yield�rec
This can be simplified to
def resultset_functional_generator(cursor):
return iter(cursor.fetchone, None)
It should be a bit faster, too.
Peter
--
http://mail.python.org/mailman/listinfo/python-list
