[Python-ideas] datetime.timedelta literals

Pål Grønås Drange paal.drange at gmail.com
Mon Jun 4 04:44:59 EDT 2018


> Speaking for myself, not for Paul, I guess my big objection would be
> that there would be too many collisions with other interpretations.
> Eg, does "5m" mean "5 minutes", "5 meters", or "the number 0.005"?  Or
> perhaps "5 minutes of arc"?

Just to clarify, the proposition was actually `5min`, and that it would
mean `datetime.timedelta(minutes=5)`.

- Pål
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180604/6902a1a6/attachment.html>


More information about the Python-ideas mailing list