Thank you. I looked it up and http://www.python.org/dev/peps/pep-0008/ says the
following:
Class Names
Almost without exception, class names use the CapWords convention.
Classes for internal use have a leading underscore in addition.
Package and Module Names
Modules should have short, all-lowercase names. Underscores can be used
in the module name if it improves readability. Python packages should
also have short, all-lowercase names, although the use of underscores is
discouraged.
Cheers!!
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public
order, irrigation, roads, a fresh water system, and public health, what have
the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>________________________________
>From: Wayne Werner <waynejwer...@gmail.com>
>To: Albert-Jan Roskam <fo...@yahoo.com>
>Cc: Alan Gauld <alan.ga...@btinternet.com>; "tutor@python.org"
><tutor@python.org>
>Sent: Wednesday, November 9, 2011 3:09 PM
>Subject: Re: [Tutor] Another question about GUI applications.
>
>
>On Wed, Nov 9, 2011 at 6:26 AM, Albert-Jan Roskam <fo...@yahoo.com> wrote:
>
>Ah, good that they've renamed it to lowercase. Isn't there a convention to
>only use a capital for class names? (and of course for constants, which are
>all caps).
>
>
>I think so, I know to adhere PEP 8 that is definitely required for names
>inside a file.
>
>
>As a mention, since I'm sure you'll hit this at some point if you program much
>with Tkinter. The common dialog imports have also changed:
>
>
>Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on
>win32
>Type "help", "copyright", "credits" or "license" for more information.
>>>> import tkinter.filedialog as fd
>>>> import tkinter.commondialog as cd
>
>
>I know Google doesn't return (at least for me) very many helpful results, even
>when explicitly using python 3 in the search field.
>
>
>HTH,
>Wayne
>
>
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor