Naming Conventions, Where's the Convention Waldo?

Terry Reedy tjreedy at udel.edu
Mon Jul 12 02:51:59 EDT 2010


On 7/11/2010 3:26 AM, rantingrick wrote:
>
> Another source of asininity seems to be the naming conventions of the
> Python language proper! True/False start with an upper case and i
> applaud this. However str, list, tuple, int, float --need i go
> on...?-- start with lowercase.

This is an anomaly, known to all long-time Pythoneers, due the the 
history of Python. Before 2.2 and unification of types and classes as 
new-style classes, those were all type constructor *functions*, not 
class names. The idea of breaking most every serious Python program on 
the planet by upper-casing them has been considered and so far rejected.

-- 
Terry Jan Reedy




More information about the Python-list mailing list