Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'defines': 0.07; 'referring': 0.07; 'imports': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'url:peps': 0.09; 'insensitive': 0.16; 'packages:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'renaming': 0.16; 'rhubarb': 0.16; 'url:pep-0008': 0.16; 'later': 0.16; 'wrote:': 0.17; 'module,': 0.17; 'url:dev': 0.17; 'jan': 0.18; 'module': 0.19; 'import': 0.21; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'header:X-Complaints- To:1': 0.28; 'writes:': 0.29; 'case,': 0.29; 'subject:all': 0.29; 'class': 0.29; '(and': 0.32; 'url:python': 0.32; 'file': 0.32; 'mixed': 0.33; 'to:addr:python-list': 0.33; 'path': 0.35; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'possible': 0.37; 'two': 0.37; 'quite': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'subject:. ': 0.66; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: CamelCase vs. all-lowercase package names Date: Sat, 02 Feb 2013 18:05:33 -0500 References: <87d2wjm9ba.fsf@handshake.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <87d2wjm9ba.fsf@handshake.de> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359846358 news.xs4all.nl 6949 [2001:888:2000:d::a6]:42356 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38091 On 2/2/2013 3:03 AM, dieter wrote: > Rhubarb Sin writes: > >> PEP-8 calls for "short, all-lowercase names" for packages: >> >> http://www.python.org/dev/peps/pep-0008/#package-and-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