[Python-Dev] Naming nit

Guido van Rossum guido at python.org
Thu Aug 12 06:17:07 CEST 2004


> [Raymond Hettinger]
> > > For PEP 292, should the class be Template() or template()?
> > >
> 
> [Brett]
> > Template as per PEP 8.
> 
> Does anyone else want to chime in (I'm not the one who needs to be
> convinced)?

Who is?

In general, classes imported from modules are Capitalized (CamelCase,
really).  Only builtins aren't.  (Counter-examples in the standard
library are mostly historic relics.)

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant