[BangPypers] date range

Shekhar pythonic at gmail.com
Tue Feb 9 12:17:08 CET 2010


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'.
>   



More information about the BangPypers mailing list