Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32565
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: pythonic way |
| Date | 2012-11-01 12:39 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | <CAFqGZREfq7fO4Okf1Oj9HBeUkWLYK_9=ho8N47_kyTKudGZSFA@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3157.1351787962.27098.python-list@python.org> (permalink) |
On Thu, 1 Nov 2012 16:32:25 +0100, inshu chauhan <insideshoes@gmail.com>
declaimed the following in gmane.comp.python.general:
> what is the most pythonic way to do this :
>
> if 0 < ix < 10 and 0 < iy < 10 ???
if 0 < ix < 10 and 0 < iy < 10:
#do something
Python has chained comparisons for a reason...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: pythonic way Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-11-01 12:39 -0400
csiph-web