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


Groups > comp.lang.python > #32565 > unrolled thread

Re: pythonic way

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2012-11-01 12:39 -0400
Last post2012-11-01 12:39 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: pythonic way Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-11-01 12:39 -0400

#32565 — Re: pythonic way

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2012-11-01 12:39 -0400
SubjectRe: pythonic way
Message-ID<mailman.3157.1351787962.27098.python-list@python.org>
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/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web