Noob question: Is all this typecasting normal?
geekmail at usenot.de
Sat Jan 3 01:57:25 CET 2009
On Fri, 2 Jan 2009 16:44:11 -0800 (PST) r <rt8396 at gmail.com> wrote:
> 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:
OK, since we're smartassing anyway: CamelCase refers specifically to
compound words or phrases that are conjoined, that is, written without
spaces between the words, where words are separated by writing their
respective first letters in capitals. Title case however refers to
normal phrases where (space separated) words are capitalized, and no
inner capitals occur (unless of course actual CamelCase words are used
in the phrase).
You even assumed that distinction in your example:
> >>> 'hello world".title()
My real email address is constructed by swapping the domain with the
recipient (local part).
More information about the Python-list