Comment 5 for bug 179644

Revision history for this message
Anand Chitipothu (anandology) wrote : Re: [Bug 179644] Re: iterbetter object is True even if it is empty when use sqlite3

On Wed, Nov 4, 2009 at 6:42 PM, Anand Chitipothu <email address hidden> wrote:
> On Wed, Nov 4, 2009 at 5:01 PM, Emyr Thomas <email address hidden> wrote:
>> For SQLite, couldn't we at least allow people to check to see if an IterBetter instance is empty or not by doing something like this?
>> http://chimezie.posterous.com/lazy-test-and-consumption-of-generators
>
> Thats a good idea. I haven't thought about it. We already use that
> patten in application.py.

Fixed. Can you try it out and let me know if it looks alright?

http://github.com/webpy/webpy/commit/fa655ca9c1adc2fa3140564cf4d075e2910f6667
http://github.com/webpy/webpy/commit/9e5e40492f6e141df977a93def73423702038bcd