Why True/False is capitalized in Python?

Joan Venge picture Joan Venge · Feb 6, 2009 · Viewed 24.9k times · Source

All members are camel case, right? Why True/False but not true/false, which is more relaxed?

Answer

James Sulak picture James Sulak · Feb 6, 2009

From Pep 285:

Should the constants be called 'True' and 'False' (similar to None) or 'true' and 'false' (as in C++, Java and C99)?

=> True and False.

Most reviewers agree that consistency within Python is more important than consistency with other languages.

This, as Andrew points out, is probably because all (most)? built-in constants are capitalized.