Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: CamelCase vs. all-lowercase package names

Reply
Thread Tools

Re: CamelCase vs. all-lowercase package names

 
 
Terry Reedy
Guest
Posts: n/a
 
      02-02-2013
On 2/2/2013 3:03 AM, dieter wrote:
> Rhubarb Sin <(E-Mail Removed)> writes:
>
>> PEP-8 calls for "short, all-lowercase names" for packages:
>>
>> http://www.python.org/dev/peps/pep-0...d-module-names

>
> This is mainly to support case insensitive file systems (and
> file systems with quite limited path length).


It also serves to differentiate a module from the main class it defines.
If file Module defines class Module, then the two possible imports
import Module
from Module import Module
make 'Module' later in the file ambiguous without referring to the top
of the file for the import. But now, 'decimal' is the module and
'Decimal' is the class (absent stupid renaming designed to confuse).

> With mixed case, some packages/modules may not conflict on
> a case sensitive file system but happen to conflict on a
> case insensitive file system.


--
Terry Jan Reedy

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: CamelCase vs. all-lowercase package names dieter Python 0 02-02-2013 08:03 AM
generic programming: (in?)compatibility of CamelCase and snake_case Jeff Schwab C++ 8 03-24-2008 11:35 AM
CamelCase versus wide_names (Prothon) Mark Hahn Python 97 04-29-2004 06:17 PM
Appropriate use of camelCase Gavin Kistner Ruby 3 02-24-2004 01:27 AM
entering the lists against CamelCase John Benson Python 2 12-08-2003 12:06 AM



Advertisments