Samuel Freilich via Python-ideas writes: > This might all be too much thought about edge cases that don't > matter, but given the *_ns() functions in the time module (PEP > 564), I'm curious why datetime doesn't have a constructor that > takes an integer timestamp with the full precision that supports.
This is such an obvious improvement that the only answer I can think of is "Because you haven't submitted a merge request yet?" ;-) TBH honest you're right about the edge case, mostly datetime is about talking to humans and that's almost by definition not worth the time of a core dev to shave nanoseconds off the operation. But if someone is looking for a chance to put in a patch, this looks likely to be approved to me. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/EDJQVPIIPR2CWOANXMNTPKODHQHCEBOW/ Code of Conduct: http://python.org/psf/codeofconduct/