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


Groups > comp.lang.python > #84832

Re: The Most Diabolical Python Antipattern

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'correct.': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'happens.': 0.09; 'lawrence': 0.09; 'message-id:@stoneleaf.us': 0.09; 'mind,': 0.09; 'referenced': 0.09; 'yeah,': 0.09; '~ethan~': 0.09; 'jan': 0.12; 'filename:fname piece:signature': 0.16; 'think?': 0.16; 'worst': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'library': 0.18; 'thu,': 0.19; 'header:User-Agent:1': 0.23; 'skip': 0.24; 'guys': 0.24; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'external': 0.29; 'am,': 0.29; "i'm": 0.30; 'cases': 0.33; 'agree': 0.35; 'but': 0.35; 'there': 0.35; "he's": 0.36; 'library.': 0.36; 'two': 0.37; 'to:addr:python-list': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'ago.': 0.61; 'matter': 0.61; 'received:173': 0.61; 'subject:The': 0.64; 'more': 0.64; 'caused': 0.69; 'day': 0.76; 'saw': 0.77; '2015': 0.84; 'that!)': 0.84; 'hate': 0.91; 'recover': 0.91
Date Thu, 29 Jan 2015 09:49:54 -0800
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version 1.0
To python-list@python.org
Subject Re: The Most Diabolical Python Antipattern
References <madpuv$he7$1@ger.gmane.org> <CANc-5Uy-B4GsUHbRX+KyH+uE06WXMDs5-Mf_S7uH0PYWiZ0HVw@mail.gmail.com>
In-Reply-To <CANc-5Uy-B4GsUHbRX+KyH+uE06WXMDs5-Mf_S7uH0PYWiZ0HVw@mail.gmail.com>
Content-Type multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Vp6dpxAG9jm8DKWwJpRQQoR93o1bQanBV"
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.18275.1422554318.18130.python-list@python.org> (permalink)
Lines 53
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1422554318 news.xs4all.nl 2857 [2001:888:2000:d::a6]:49698
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:84832

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 01/29/2015 09:36 AM, Skip Montanaro wrote:
> On Thu, Jan 29, 2015 at 11:17 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
>>
>> ... but what do you guys and gals think?
> 
> I saw that blog referenced elsewhere a day or two ago. I think he's
> correct. There are the occasional instance where I need to recover
> from an exception no matter what caused it. In cases where I fail to
> report the traceback somewhere, I'm often left scratching my head.

I agree -- worst practice.


> In my mind, this is approximately as bad as an external library
> (silently) calling exit().

Yeah, I hate when that happens.  I hate it even more when it's my own library. :/  (yeah, I fixed that!)

--
~Ethan~

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


Thread

Re: The Most Diabolical Python Antipattern Ethan Furman <ethan@stoneleaf.us> - 2015-01-29 09:49 -0800

csiph-web