Noob question: Is all this typecasting normal?

r rt8396 at gmail.com
Fri Jan 2 19:44:11 EST 2009


On Jan 2, 6:26 pm, Andreas Waldenburger <geekm... at usenot.de> wrote:
> On Fri, 2 Jan 2009 16:16:10 -0800 (PST) vk <vmi... at gmail.com> wrote:
>
> > > If there were, I would expect it to conform with PEP 8 (get those
> > > ugly camelCase names outta there :-)  
>
> > haha, please forgive me.
> > I'll try and think of some more creative names.
>
> FYI: The names themselves aren't he problem at all. They just should
> be all_lowercase_with_underscores if they're functions or variables.
> CamelCase (with initial capital!) is "reserved" for classnames only.
>
> /W
>
> --
> My real email address is constructed by swapping the domain with the
> recipient (local part).

FYI camelCase with __init__ capital is called "title case" try this:

>>> 'hello world".title()



More information about the Python-list mailing list