5

Python consistency :/

Comments
  • 0
    It is actually not that weird. I assume this is Python 2, in which True and False are nothing but variables (which means that they can be assigned to, as seen in this post), and None is a keyword so it can't be assigned to. In Python 3 True and False are keywords as well.
  • 0
    @DeepSpace I know that True/False are just variables of type bool. But why have None as constant since 2.4 and True/False since 3.0.

    Some day someone will hack PyPI and add True=False to popular modules and we can watch the world burn 8-)
Add Comment