Closed GoogleCodeExporter closed 9 years ago
FYI.. python 3.3 produces the following for the above tests...
m = None
>>> assert not m >= 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: NoneType() >= int()
>>> assert not m > 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: NoneType() > int()
>>> assert m <= 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: NoneType() <= int()
>>> assert m < 0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: NoneType() < int()
>>> assert m != 0
>>> assert m <> 0
File "<stdin>", line 1
assert m <> 0
^
SyntaxError: invalid syntax
I should be able to easily add the TypeError messages, etc, but the <> issue
(related to issue # 102) may need to wait till Pierre can take a peak.
Thanks!
Billy
Original comment by billy.earney@gmail.com
on 17 Mar 2013 at 2:33
This issue was closed by revision r725.
Original comment by billy.earney@gmail.com
on 17 Mar 2013 at 8:22
Original issue reported on code.google.com by
ca...@nce.ufrj.br
on 15 Mar 2013 at 12:36