by StavrosK · 13y ago · 0 comments
if [something]:
VS if [something] is True:
In the case I think you are talking about I would probably agree with you that returning some non-boolean is less clean, though I would probably just use the equality operator to force a boolean result: def foo(i):
return i == 0