[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:

> 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/N3GSWPC3EXKBRZDRBGTJ35FFDUS7ICFP/
Code of Conduct: http://python.org/psf/codeofconduct/


[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://take.supersurvey.com/QCVZKTDY0
>
> It will not take more than few seconds. Appreciate your time.

Polls are utterly useless.

ChrisA
___
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/N2KIKNPULOLSBXTJ4472ZWMTUAV623XH/
Code of Conduct: http://python.org/psf/codeofconduct/


[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 

It will not take more than few seconds. Appreciate your time.

Regards,
DG


___
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/65OSC2LGO44SNQCKH5VP6I2UNZ5I64AD/
Code of Conduct: http://python.org/psf/codeofconduct/


[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 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/