On 08/18/2015 12:31 PM, Alexander Belopolsky wrote:

I used

 t.replace(later=True) - t.replace(later=False) < 0

as a shorthand for

   t.replace(later=True).timestamp() - t.replace(later=False).timestamp() < 0

(The 0 in the r.h.s. instead of timedelta(0) > could serve as a hint.)

The result was invalid and confusing code.  Please don't do that.

--
~Ethan~
_______________________________________________
Datetime-SIG mailing list
[email protected]
https://mail.python.org/mailman/listinfo/datetime-sig
The PSF Code of Conduct applies to this mailing list: 
https://www.python.org/psf/codeofconduct/

Reply via email to