Fixed mx.DateTime or alternative?

Chuck Esterbrook ChuckEsterbrook at yahoo.com
Wed Jul 11 22:37:55 EDT 2001


At 11:36 PM 7/9/2001 +0200, M.-A. Lemburg wrote:
>In this case you could use:
>
>         if a and b and (a == b): ...
>
>(DateTime instances are always true, None is false)

That seems to break down if they are both None. str(a)==str(b) seems to be 
the safest bet until 2.0.2 comes out later this week.  ;-)


-Chuck





More information about the Python-list mailing list