Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86457

Re: Python Worst Practices

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'scripts': 0.03; 'subject:Python': 0.06; 'bash': 0.09; 'logic': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'missed': 0.12; 'language.': 0.14; 'boolean': 0.16; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'so.': 0.16; 'language': 0.16; 'programming': 0.22; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'chris': 0.29; 'unix': 0.29; 'especially': 0.30; 'agreed.': 0.31; 'writes:': 0.31; 'quite': 0.32; 'could': 0.34; 'but': 0.35; 'doubt': 0.36; 'ben': 0.38; 'massive': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'extended': 0.61; 'full': 0.61; 'complete': 0.62; 'become': 0.64; 'skip:\xe2 10': 0.65; 'capable': 0.67; '8bit%:43': 0.74; 'special': 0.74; 'lack': 0.78; 'received:125': 0.84; 'sorely': 0.84; 'subject:Practices': 0.84; '1988': 0.91; 'bears': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Python Worst Practices
Date Thu, 26 Feb 2015 12:05:12 +1100
References <mclca6$iie$1@ger.gmane.org> <CAPTjJmppMhBuLy=LMC=ycN0RYE9Jp8BVZbdSeqBZupd_7Nwxfw@mail.gmail.com> <85bnkh5z96.fsf@benfinney.id.au> <CAPTjJmrySN-tpcyXON4v_Ux0E961DYZqc5kF116sTLp_-RetqQ@mail.gmail.com> <85zj814jmb.fsf@benfinney.id.au> <CAPTjJmo3g4t-Q11one_7PNp30a3JJGnoCwiw+Y=oZrOFfs6zuw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock sha1:ihgyuOJHm7swxAeYluKr3AlCTxU=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.19229.1424912702.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424912702 news.xs4all.nl 2970 [2001:888:2000:d::a6]:58015
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86457

Show key headers only | View raw


Chris Angelico <rosuav@gmail.com> writes:

> IMO the whole system of boolean logic in shell scripts is a massive
> pile of hacks.

Agreed. It bears all the hallmarks of a system which has been extended
to become a complete programming language only with extreme reluctance
on its part.

I continue to be impressed by how capable and powerful Unix shell is as
a full programming language. Especially it is sorely missed on other
OSes which lack a capable shell.

But it could never be called “elegant”.

> The sh and bash system of logic works, there's no doubt about it. […]
> But none of this means that Python should, in any way, imitate it.

Quite so.

-- 
 \     “Airports are ugly. Some are very ugly. Some attain a degree of |
  `\        ugliness that can only be the result of a special effort.” |
_o__)       —Douglas Adams, _The Long Dark Tea-Time of the Soul_, 1988 |
Ben Finney

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Python Worst Practices Ben Finney <ben+python@benfinney.id.au> - 2015-02-26 12:05 +1100
  Re: Python Worst Practices Grant Edwards <invalid@invalid.invalid> - 2015-02-26 14:37 +0000

csiph-web