[Python-ideas] True and False are singletons

Serhiy Storchaka storchaka at gmail.com
Tue Mar 19 04:01:57 EDT 2019


18.03.19 22:52, Wes Turner пише:
>  >>> True = 1
>    File "<stdin>", line 1
> SyntaxError: can't assign to keyword

The error message will be changed in 3.8.

 >>> True = 1
   File "<stdin>", line 1
SyntaxError: cannot assign to True



More information about the Python-ideas mailing list