Guido van Rossum wrote: > > I would prefer these constants to be named "true" and "false", > > respectively. > > But all other built-in constants have an initial capital letter: None, > NotImplemented, Ellipsis, ... True. But this isn't as compelling as it might be, since None is the only one that enjoys common non-guru usage. It only counts as consistency if other people notice and remember the pattern. The pattern people really care about is: C99: true false C++: true false C#: true false Java: true false JavaScript: true false (I can't find other case-sensitive languages with boolean types to compare.) I also think repr(false) should return a randomly chosen line from an insults file. This makes the interactive prompt funnier: >>> 1 == 1 true >>> 1 == 17 LIAR!!! ## Jason Orendorff http://www.jorendorff.com/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4