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


Groups > comp.lang.python > #95063

Re: GOTCHA with list comprehension

Path csiph.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <lac@openend.se>
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; 'source,': 0.04; 'subject:skip:c 10': 0.07; 'cc:addr:python-list': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'python': 0.10; '2.7': 0.13; 'wed,': 0.15; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'say)': 0.16; 'utterly': 0.16; 'laura': 0.18; 'working.': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; "aren't": 0.22; 'dependent': 0.23; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'subject:list': 0.26; 'chris': 0.26; 'packaging': 0.27; 'least': 0.27; 'values': 0.28; 'received:se': 0.29; 'that.': 0.30; 'branch': 0.30; "can't": 0.32; 'problem': 0.33; '(for': 0.34; 'running': 0.34; 'done': 0.35; 'skip:> 10': 0.35; 'subject:: ': 0.37; 'there,': 0.37; 'release': 0.37; 'charset:us-ascii': 0.37; 'version': 0.38; 'why': 0.39; 'subject:with': 0.40; 'some': 0.40; 'skip:u 10': 0.61; 'header:Message-Id:1': 0.61; 'back': 0.62; 'improved': 0.63; 'more': 0.63; 'grab': 0.64; 'restore': 0.70; 'yourself': 0.73; 'received:89': 0.80; '+1000,': 0.84; '2.7.': 0.84; 'upgrade,': 0.84; 'careful': 0.91
To Chris Angelico <rosuav@gmail.com>
cc "python-list@python.org" <python-list@python.org>
From Laura Creighton <lac@openend.se>
Subject Re: GOTCHA with list comprehension
In-Reply-To Message from Chris Angelico <rosuav@gmail.com> of "Wed, 05 Aug 2015 17:05:49 +1000." <CAPTjJmr2KAJRSsD49+WnEmbGXdKvXB-v6eMdgv1HrBTSGJaeRQ@mail.gmail.com>
References <ebf0a31e-1021-41d2-affb-8318838a464b@googlegroups.com><CAPTjJmr2KAJRSsD49+WnEmbGXdKvXB-v6eMdgv1HrBTSGJaeRQ@mail.gmail.com>
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-ID <32344.1438835983.1@fido>
Date Thu, 06 Aug 2015 06:39:43 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Thu, 06 Aug 2015 06:39:45 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.1266.1438835990.3674.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1438835990 news.xs4all.nl 2908 [2001:888:2000:d::a6]:37756
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95063

Show key headers only | View raw


In a message of Wed, 05 Aug 2015 17:05:49 +1000, Chris Angelico writes:
>Incidentally, why Python 2.6? Python 2.7 has been out for a pretty
>long time now, and if you can't move to version 3.x, I would at least
>recommend using 2.7. Since the release of 2.6.9 back before Frozen
>came out, that branch has been completely unmaintained. Grab yourself
>a 2.7 and take advantage of some neat new features (for old values of
>"new"), and improved compatibility with 3.x.
>
>ChrisA

Be careful suggesting that people upgrade, at least until you have
found out that they aren't running CentOS enterprise edition. The
CentOS packaging system is utterly dependent on having the Python
version it expects, and if you install a more recent version
(from source, say) the whole packaging system will stop working.
Recovering from this problem is also very, very difficult  (unless
you just restore from a recent full backup).

Been there, done that. :(

Laura

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


Thread

GOTCHA with list comprehension Pavel S <pavel@schon.cz> - 2015-08-04 23:48 -0700
  Re: GOTCHA with list comprehension Pavel S <pavel@schon.cz> - 2015-08-05 00:03 -0700
    Re: GOTCHA with list comprehension Chris Angelico <rosuav@gmail.com> - 2015-08-05 17:20 +1000
  Re: GOTCHA with list comprehension Peter Otten <__peter__@web.de> - 2015-08-05 09:04 +0200
  Re: GOTCHA with list comprehension Chris Angelico <rosuav@gmail.com> - 2015-08-05 17:05 +1000
    Re: GOTCHA with list comprehension Pavel S <pavel@schon.cz> - 2015-08-05 00:10 -0700
      Re: GOTCHA with list comprehension Chris Angelico <rosuav@gmail.com> - 2015-08-05 17:21 +1000
        Re: GOTCHA with list comprehension Pavel S <pavel@schon.cz> - 2015-08-05 00:33 -0700
    Re: GOTCHA with list comprehension Marko Rauhamaa <marko@pacujo.net> - 2015-08-05 12:01 +0300
      Re: GOTCHA with list comprehension Chris Angelico <rosuav@gmail.com> - 2015-08-05 19:52 +1000
        Re: GOTCHA with list comprehension Marko Rauhamaa <marko@pacujo.net> - 2015-08-05 14:10 +0300
      Re: GOTCHA with list comprehension Saran Ahluwalia <ahlusar.ahluwalia@gmail.com> - 2015-08-07 09:08 -0400
  Re: GOTCHA with list comprehension Laura Creighton <lac@openend.se> - 2015-08-06 06:39 +0200
  Re: GOTCHA with list comprehension Chris Angelico <rosuav@gmail.com> - 2015-08-06 14:44 +1000

csiph-web