[Python-ideas] Reconstructing datetime from microsecond timestamp

2023-09-25 Thread Stephen J. Turnbull
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

[Python-ideas] Re: Extract variable name from itself

2023-09-25 Thread Dom Grigonis
I think a lot has been said by this time and I have nothing to add. If this is something that is of value, I am sure it will be picked up when the time is right. One last thing that I think could be of some use is a poll: https://take.supersurvey.com/QCVZKTDY0

[Python-ideas] Re: Extract variable name from itself

2023-09-25 Thread Chris Angelico
On Mon, 25 Sept 2023 at 22:04, Dom Grigonis wrote: > > I think a lot has been said by this time and I have nothing to add. > > If this is something that is of value, I am sure it will be picked up when > the time is right. > > One last thing that I think could be of some use is a poll: > > https:

[Python-ideas] Re: Reconstructing datetime from microsecond timestamp

2023-09-25 Thread Samuel Freilich via Python-ideas
*puts on contributor hat* Well all right then! Filed https://github.com/python/cpython/issues/109849, recapping this and asking some questions about the specifics. I'll try to put together a PR. On Mon, Sep 25, 2023 at 3:49 AM Stephen J. Turnbull < turnbull.stephen...@u.tsukuba.ac.jp> wrote: > S