This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Jeremy Banks, belopolsky, mark.dickinson, vstinner
Date 2008-11-16.00:29:39
SpamBayes Score 6.508125e-05
Marked as misclassified No
Message-id <>

Adding a __float__ method to datetime was entertained back in 2003, but 
was rejected.  The same reasons apply to timedelta:

- A C double doesn't have enough precision for roundtrip guarantees.

- Does it really need to be automatic?  I.e., does it really need to
  be __float__()?  I'd be less against this if it was an explicit
  method, e.g. dt.asposixtime().

--Guido van Rossum (home page:
Date User Action Args
2008-11-16 00:29:41belopolskysetrecipients: + belopolsky, mark.dickinson, vstinner, Jeremy Banks
2008-11-16 00:29:41belopolskysetmessageid: <>
2008-11-16 00:29:40belopolskylinkissue4291 messages
2008-11-16 00:29:39belopolskycreate