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.)
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to