self.__dict__ tricks

Ben Finney ben+python at benfinney.id.au
Fri Oct 30 06:00:10 CET 2009


Ben Finney <ben+python at benfinney.id.au> writes:

> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
>
> > On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote:
> > > class formLoader():
> >
> > Idiomatic Python is to use CamelCase for classes.
>
> Or rather: Instead of camelCase names, idiomatic Python is to use
> TitleCase names.

Blah, my attempt at clarity just made it more confusing.

Instead of camelCase names, idiomatic Python is to use TitleCase names
for classes.

-- 
 \         “Pinky, are you pondering what I'm pondering?” “I think so, |
  `\         Brain, but how will we get a pair of Abe Vigoda's pants?” |
_o__)                                           —_Pinky and The Brain_ |
Ben Finney



More information about the Python-list mailing list