Skip to content

Instantly share code, notes, and snippets.

@olmstadfm
Created November 14, 2015 13:42
Show Gist options
  • Save olmstadfm/634180d525400b524fd3 to your computer and use it in GitHub Desktop.
Save olmstadfm/634180d525400b524fd3 to your computer and use it in GitHub Desktop.
В питоне можно переопределить true и false через обычное присваивание
True=False
print True # => False
if True:
print "boring..."
else:
print "wait, what?!"
# => wait, what?!
# via https://savagejen.github.io/blog/2013/05/16/pythons-definition-of-insanity/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment