[Python-ideas] datetime.timedelta literals

Jacco van Dorp j.van.dorp at deonet.nl
Tue Jun 5 02:57:26 EDT 2018


I'd say seconds(), minutes() etc functions in the datetime module
might be good. Same for better docstrings.

I dont really think it's worth adding literals though.

@Pål
You can't import literals. They're syntax, not just bound names.
(Unless we're counting future imports, but those aren't real imports.)


More information about the Python-ideas mailing list