range() is not the best way to check range?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Jul 18 03:27:26 EDT 2006


In <1153198570.592653.203310 at h48g2000cwc.googlegroups.com>, tac-tics
wrote:

> Grant Edwards wrote:
>> for pete's sake use the comparison operator like god intended.
>>
>>     if 0 <= i <= 10000:
> 
> I'm assuming you used Python's compound comparison as opposed to the
> C-style of and'ing two comparisons together to emphasize the fact it is
> god's chosen way of doing this ;-)

Pete doesn't like to be called god in public.  ;-)

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list