name capitalization of built-in types, True, and False
James Stroud
jstroud at mbi.ucla.edu
Sat May 12 00:20:51 EDT 2007
cbtube03 at gmail.com wrote:
> I see that naming conventions are such that classes usually get named
> CamelCase. So why are the built-in types named all lowercase (like
> list, dict, set, bool, etc.)?
>
> And names for instances of classes are usually written in lowercase,
> like foo in ``foo = CamelCase()``. So why are True and False
> (instances of bool) capitalized? Shouldn't they be "true" and "false"?
> Same goes for None.
>
My guess is that TRUE, FALSE, and NONE are fairly unbecoming and all
lowercase would not do justice to their status as language constants.
More information about the Python-list
mailing list