[Tutor] Another question about GUI applications.
fomcl at yahoo.com
Wed Nov 9 18:01:07 CET 2011
Thank you. I looked it up and http://www.python.org/dev/peps/pep-0008/ says the following:
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
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 <waynejwerner at gmail.com>
>To: Albert-Jan Roskam <fomcl at yahoo.com>
>Cc: Alan Gauld <alan.gauld at btinternet.com>; "tutor at python.org" <tutor at 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 <fomcl at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor