Re:Why does `True == False is False` evaluate to False in Py...
by stinos on Saturday May 02, 2020 @11:27AM
(#23052271)
Depends. For obscure behavior features, ok, for 'language features' I'm probably still going to pass. Because in this example case that would come down do
whih is not clearer, not easier to parse and not faster to read and harder to maintain (leads to rot easily when variable names change) than the non-ambiguous other choice.
[ Parent
| on HN ]
Re:Why does `True == False is False` evaluate to False in Py...
by shkkmo on Saturday May 02, 2020 @11:40PM
(#23056699)
I would have skipped that second line and just left the line with the documentation link. If you are going to provide the equivalent code in a comment, you might as well just use the equivalent code.