[Python-3000] Why lowercase?

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Dec 15 01:00:51 CET 2007


Guido van Rossum wrote:
> int, str, float and a few others were
> *functions* before Python 2.2, like len, id etc. still are. We turned
> int etc. into builtin types

I think this illustrates that any convention which assigns
different case to functions and classes can only ever be
a heuristic in Python and not a hard-and-fast rule, since any
class could become a factory function later or vice versa.

Although it's inconsistent, it somehow seems right that the
most fundamental things you use all the time should have
names that are easy on the eyes and fingers.

--
Greg


More information about the Python-3000 mailing list