Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43593
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.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 | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.058 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'context': 0.07; 'explicit': 0.07; 'correct,': 0.09; 'python': 0.11; 'creates': 0.14; 'abbreviated': 0.16; 'context;': 0.16; 'dislike': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'readability': 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; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; '(maybe': 0.31; 'long.': 0.31; 'use?': 0.31; 'probably': 0.32; 'another': 0.32; 'cases': 0.33; 'could': 0.34; 'but': 0.35; 'subject:?': 0.36; 'jason': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'itself': 0.39; 'use.': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'read': 0.60; 'skip:n 30': 0.60; 'break': 0.61; 'name:': 0.61; 'more': 0.64; 'header :Reply-To:1': 0.67; 'believe': 0.68; 'yes': 0.68; 'beautiful': 0.68; 'reply-to:no real name:2**0': 0.71; 'special': 0.74; '"con"': 0.84; 'beats': 0.84; 'reply-to:addr:python.org': 0.84; 'trick,': 0.84; 'zen': 0.84 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.0 cv=f6aW8pOM c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=QUiRZEtCktgA:10 a=fpeYbSKREZQA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=1O1Sves02ZYA:10 a=S-FaTfNpYzjdvwqZt0wA:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 |
| X-AUTH | mrabarnett:2500 |
| Date | Mon, 15 Apr 2013 03:07:19 +0100 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: classes and sub classes? |
| References | <mailman.313.1365486619.3114.python-list@python.org> <5163be52$0$29977$c3e8da3$5496439d@news.astraweb.com> <CACQBTrRVs1G_LP7d0+e=gxB18-zDGKPr7kXy=_A-2RB8YHEhfw@mail.gmail.com> <CANy1k1imR+yynBjWhGx5OU6FE2jC9hcB+yHuMF6r2GEwY3m39g@mail.gmail.com> |
| In-Reply-To | <CANy1k1imR+yynBjWhGx5OU6FE2jC9hcB+yHuMF6r2GEwY3m39g@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.614.1365991635.3114.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365991635 news.xs4all.nl 2586 [2001:888:2000:d::a6]:39457 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:43593 |
Show key headers only | View raw
On 15/04/2013 02:38, 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? > "network" could be abbreviated to "net", "inventory" to "inv" (maybe OK in this context; in another context it could an abbreviation for "inverse"), and "connection" to "con" (maybe), giving "net_inv_db_con", or "net_inv_db_connection". The trick, of course, is to make it clear, but not annoyingly long. Python itself has "def", "len", and "lstrip", not "define", "length" and "left_strip".
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
classes and sub classes? Morten Guldager <morten.guldager@gmail.com> - 2013-04-09 07:50 +0200
Re: classes and sub classes? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-09 07:08 +0000
Re: classes and sub classes? Morten Guldager <morten.guldager@gmail.com> - 2013-04-09 09:38 +0200
Re: classes and sub classes? Jason Friedman <jsf80238@gmail.com> - 2013-04-14 19:38 -0600
Re: classes and sub classes? MRAB <python@mrabarnett.plus.com> - 2013-04-15 03:07 +0100
Re: classes and sub classes? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-04-14 22:35 -0400
Re: classes and sub classes? Peter Otten <__peter__@web.de> - 2013-04-15 09:21 +0200
Re: classes and sub classes? Neil Cerutti <neilc@norwich.edu> - 2013-04-15 12:22 +0000
csiph-web