On 4 June 2018 at 22:50, Chris Barker via Python-ideas <python-ideas@python.org> wrote: > So maybe you could propose adding: > > seconds > minutes > hours > days > > to the datetime module, and then we could write: > > 60*seconds == 1*minutes > > Without any changes to the language at all.
This strikes me as more of a personal/team style issue, so probably fits better as local definitions in a project's "utilities" module. Putting it in the stdlib implies a certain level of approval of this as a standard idiom, and I'm not sure it's common enough practice to warrant that. Paul _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/