Hmm... An idea: if a,b==c,d:

Richard Dillingham shadowlord13_1 at yahoo.com
Mon Nov 18 18:37:59 EST 2002


> It's better written as:
>
> if coords[0]<=posx<=coords[2] and coords[1]<=posy<=coords[3]:

Hmm.... I just tried that, and am quite amazed to find that it actually
works.





More information about the Python-list mailing list