1== 1 is False?

Terry Reedy tjreedy at udel.edu
Fri Jun 20 12:17:00 EDT 2003


"delphiro" <delphiro at zonnet.nl> wrote in message
news:mailman.1056118300.27179.python-list at python.org...
>     if( p[0] <= xmax )and( p[0] >= xmin)and( p[1] <= ymax )and( p[1]
>= ymin ):

side note: above can be written more compactly and run slightly faster
as

if xmin <= p[0] <= xmax and ymin <= p[1] <= ymax:

tjr






More information about the Python-list mailing list