Kenneth Gonsalves wrote:
On Tuesday 09 Feb 2010 4:18:02 pm Rory Hart wrote:
if startdate < date and date < enddate:

    print "date in range"

more compact
is_in_range = startdate < date < enddate


that is what I was doing - too verbose, wanted to know if I could use 'in'.

_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to