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


Groups > comp.lang.python > #86457

Re: Python Worst Practices

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Python Worst Practices
Date 2015-02-26 12:05 +1100
References (1 earlier) <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>
Newsgroups comp.lang.python
Message-ID <mailman.19229.1424912702.18130.python-list@python.org> (permalink)

Show all headers | 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