Skip to content

Instantly share code, notes, and snippets.

@gchiam
Last active August 29, 2015 14:27
Show Gist options
  • Save gchiam/dfc4273e028b4f88910f to your computer and use it in GitHub Desktop.
Save gchiam/dfc4273e028b4f88910f to your computer and use it in GitHub Desktop.
$ python -c "print('True' if None < 0 else False)"
True
$ python3 -c "print('True' if None < 0 else False)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: unorderable types: NoneType() < int()
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment