Comment 8 for bug 612351

Revision history for this message
Jamu Kakar (jkakar) wrote :

Instead of using __nonzero__ we recommend using
ResultSet.is_empty(). I do wonder if it's worth adding
__nonzero__... on the one hand it feels like it could be nice
(obviously people are asking for it), on the other hand it feels
magical and that it would be better to just use is_empty.

Is there a case where is_empty is not sufficient?