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


Groups > comp.lang.python > #61197

Re: One liners

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.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.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'lines,': 0.07; 'variables': 0.07; 'string': 0.09; 'dan': 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; '"python"': 0.16; 'culturally': 0.16; 'direction?': 0.16; 'names?': 0.16; 'obsessed': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'community.': 0.22; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'long,': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'direction': 0.30; "i'm": 0.30; '(which': 0.31; 'getting': 0.31; 'bad.': 0.31; 'multiline': 0.31; 'perl': 0.31; 'anyone': 0.31; 'agree': 0.35; 'but': 0.35; 'there': 0.35; 'too': 0.37; 'turn': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'first': 0.61; 'more': 0.64; 'temporary': 0.65; 'beautiful': 0.68; 'trends': 0.69; 'subject:One': 0.74; 'complex,': 0.84; 'mistakes,': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Batchelder <ned@nedbatchelder.com>
Subject Re: One liners
Date Fri, 06 Dec 2013 19:07:42 -0500
References <CAGGBd_o1TS02cosi+q9YeN5rnWJxe5mU7xtCTuTMZGO0ntF5TA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host c-50-133-228-126.hsd1.ma.comcast.net
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
In-Reply-To <CAGGBd_o1TS02cosi+q9YeN5rnWJxe5mU7xtCTuTMZGO0ntF5TA@mail.gmail.com>
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.3675.1386374876.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386374876 news.xs4all.nl 2973 [2001:888:2000:d::a6]:43585
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61197

Show key headers only | View raw


On 12/6/13 6:54 PM, Dan Stromberg wrote:
>
> Does anyone else feel like Python is being dragged too far in the
> direction of long, complex, multiline one-liners?  Or avoiding temporary
> variables with descriptive names?  Or using regex's for everything under
> the sun?
>
> What happened to using classes?  What happened to the beautiful emphasis
> on readability?  What happened to debuggability (which is always harder
> than writing things in the first place)?  And what happened to string
> methods?
>
> I'm pleased to see Python getting more popular, but it feels like a lot
> of newcomers are trying their best to turn Python into Perl or
> something, culturally speaking.

I agree with you that those trends would be bad.  But I'm not sure how 
you are judging that "Python" is being dragged in that direction?  It's 
a huge community.  Sure some people are obsessed with fewer lines, and 
micro-optimizations, and other newb mistakes, but there are good people too!

--Ned, ever the optimist.

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


Thread

Re: One liners Ned Batchelder <ned@nedbatchelder.com> - 2013-12-06 19:07 -0500

csiph-web