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.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'explicit': 0.07; 'correct,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'creates': 0.14; 'dislike': 0.16; 'readability': 0.16; 'received:80.91.229.3': 0.16; 'received:dip.t-dialin.net': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-dialin.net': 0.16; 'subject:sub': 0.16; 'written.': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'header:User-Agent:1': 0.23; "aren't": 0.24; 'header:X -Complaints-To:1': 0.27; 'rest': 0.29; "i'm": 0.30; 'context.': 0.31; 'use?': 0.31; 'probably': 0.32; 'cases': 0.33; 'subject:?': 0.36; 'should': 0.36; 'clear': 0.37; 'jason': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'use.': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'read': 0.60; 'skip:n 30': 0.60; 'break': 0.61; 'name:': 0.61; 'more': 0.64; 'believe': 0.68; 'yes': 0.68; 'beautiful': 0.68; 'special': 0.74; 'beats': 0.84; 'zen': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: classes and sub classes? Date: Mon, 15 Apr 2013 09:21:25 +0200 Organization: None References: <5163be52$0$29977$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p5084aa7b.dip.t-dialin.net User-Agent: KNode/4.7.3 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366010485 news.xs4all.nl 2637 [2001:888:2000:d::a6]:48988 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43608 Jason Friedman wrote: >> NwInvDb = NetworkInventoryDatabase, yes you are correct, it creates the > database handle and makes it ready for use. > > I am interested in opinions. I for one dislike abbreviations on the > theory > that programs are read more than they are written. I would probably use > this variable name: > > network_inventory_db_connection = ... > > And yes, I'm aware that "db" is an abbreviation. I believe I am following > a few Zen principles: > > Beautiful is better than ugly. > Explicit is better than implicit. > Readability counts. > Special cases aren't special enough to break the rules, Although > practicality beats purity. > > What would others use? inventory_db The rest should be clear from the context.