Hello! I admit SelectResults.__nonzero__ was a design mistake. Guido van
Rossum and Phillip J. Eby showed that it possible for an iterator to be
empty and still be evaluated to True in a boolean context. See the thread
http://mail.python.org/pipermail/python-dev/2007-September/074731.html
The offending __nonzero__ has just been removed in the revisions
2992-2995.
But please remember it's still a bug in your code to write
if MyTable.select():
...
I have submitted a patch to fix such bug in the logging module. Don't
hesitate to submit a patch for other libraries (Zope TAL, anyone?)
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss