Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'paths': 0.05; 'definitions': 0.07; '*the': 0.09; 'conventions.': 0.09; 'friday,': 0.09; 'identifier': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'sat,': 0.15; '"import': 0.16; 'classes)': 0.16; 'conveying': 0.16; 'naming': 0.16; 'readability.': 0.16; 'subject:access': 0.16; 'syntax.': 0.16; 'wrote:': 0.17; 'jan': 0.18; '(or': 0.18; 'module': 0.19; 'code.': 0.20; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'module.': 0.27; 'chris': 0.28; 'enforce': 0.29; 'source': 0.29; 'problem.': 0.32; 'johnson': 0.32; '11,': 0.33; 'conventions': 0.33; 'received:google.com': 0.34; 'path': 0.35; 'open': 0.35; 'pm,': 0.35; 'continue': 0.35; 'received:209.85': 0.35; 'explain': 0.36; '12,': 0.36; 'should': 0.36; 'why': 0.37; 'detail': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'object': 0.38; 'skip:l 20': 0.38; 'sure': 0.38; 'easily': 0.39; 'skip:" 10': 0.40; 'matter': 0.61; 'information': 0.63; '2013': 0.84; 'forced': 0.84; 'rick': 0.91; 'yours.': 0.93 Newsgroups: comp.lang.python Date: Fri, 11 Jan 2013 21:46:36 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.196.131.158; posting-account=h3aEwQoAAACiuqX-oR3gvCVFm8lLHoWj References: <8e9b2b0e-1c34-46cc-80c6-57fbb5fd756c@googlegroups.com> <50f03799$0$30003$c3e8da3$5496439d@news.astraweb.com> <9b64719e-1e06-47fa-a7e6-692a3dd360d0@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 70.196.131.158 MIME-Version: 1.0 Subject: Re: PyWart: Module access syntax From: Rick Johnson To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357970216 news.xs4all.nl 6938 [2001:888:2000:d::a6]:53272 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36677 On Friday, January 11, 2013 10:40:36 PM UTC-6, Chris Angelico wrote: > On Sat, Jan 12, 2013 at 3:34 PM, Rick Johnson > > *The problem:* > > ... is readability. The current dot syntax used ubiquitously in paths i= s not conveying the proper information to the reader, and in-fact obfuscati= ng the code. >=20 > Please explain how this is a problem.=20 What is this importing? "import lib.gui.simpledialog" =20 ...is that the "simpledialog module" or "SimpleDialog object"? Since naming= conventions are not ENFORCED, we can NEVER be sure if an identifier is a o= bject or module. And since object definitions (aka: classes) are often plac= ed into a module with the same name, how are we to know? Why should we be f= orced to open source files to find out a small detail that proper syntax ca= n easily provide? This is a matter of READABILITY, Christopher. It's one or the other (or the= status quo): 1. Enforce naming conventions. 2. Enforce path syntax. 3. Continue to obfuscate code. The choice is yours.