G
Gregor Horvath
Hi,
True
Why?
Is there a logical reason?
Gregor
True
Why?
Is there a logical reason?
Gregor
Gregor said:Hi,
True
Why?
Is there a logical reason?
Gregor
True
Why?
Is there a logical reason?
True
Why?
Is there a logical reason?
Gregor said:True
True
Why?
Is there a logical reason?
D'Arcy J.M. Cain said:Why not?
In my humble opinion, I think that comparisons involving None should
return None...
return None, but I trust that the designers came up with this for very
good reasons. As far as I know I've never been bitten by it.
return None, but I trust that the designers came up with this for very
good reasons. As far as I know I've never been bitten by it.
Gregor said:Because, from http://www.python.org/dev/peps/pep-0020/ :
Errors should never pass silently.
In the face of ambiguity, refuse the temptation to guess.
Greg
Quite apart from Jon pointing out that this isn't true for all cases when
copmparing against None, the other half also isn't true:
True
That happens at least in Python 2.5.2 on win32. Yet another reason to avoid
old-style classes.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.