Re: [Python-Dev] PEP 564: Add new time functions with nanosecond resolution

2017-10-22 Thread Victor Stinner
Le 22 oct. 2017 17:06, "Wes Turner" a écrit : Must they always use their own implementations of time., datetime. __init__, fromordinal, fromtimestamp ?! Yes, exactly. Note: Adding resolution better than 1 us to datetime is not in the scope of the PEP but there is an issue, open since a long ti

Re: [Python-Dev] PEP 564: Add new time functions with nanosecond resolution

2017-10-22 Thread Wes Turner
On Sunday, October 22, 2017, David Mertz wrote: > I worked at a molecular dynamics lab for a number of years. I advocated > switching all our code to using attosecond units (rather than fractional > picoseconds). > > However, this had nothing whatsoever to do with the machine clock speeds, > but

Re: [Python-Dev] PEP 564: Add new time functions with nanosecond resolution

2017-10-22 Thread David Mertz
I worked at a molecular dynamics lab for a number of years. I advocated switching all our code to using attosecond units (rather than fractional picoseconds). However, this had nothing whatsoever to do with the machine clock speeds, but only with the physical quantities represented and the scaling

Re: [Python-Dev] PEP 564: Add new time functions with nanosecond resolution

2017-10-22 Thread Nick Coghlan
On 23 October 2017 at 01:06, Wes Turner wrote: > On Saturday, October 21, 2017, Nick Coghlan wrote: > >> So yeah, for nanosecond resolution to not be good enough for programs >> running in Python, we're going to be talking about some genuinely >> fundamental changes in the nature of computing ha

Re: [Python-Dev] PEP 564: Add new time functions with nanosecond resolution

2017-10-22 Thread Chris Angelico
On Mon, Oct 23, 2017 at 2:06 AM, Wes Turner wrote: > What about bus latency (and variance)? I'm currently in Los Angeles. Bus latency is measured in minutes, and may easily exceed sixty of them. :| Seriously though: For applications requiring accurate representation of relativistic effects, the

Re: [Python-Dev] PEP 564: Add new time functions with nanosecond resolution

2017-10-22 Thread Wes Turner
On Saturday, October 21, 2017, Nick Coghlan wrote: > On 22 October 2017 at 09:32, Victor Stinner > wrote: > >> Le 21 oct. 2017 20:31, "francismb" > > a écrit : >> >> I understand that one can just multiply/divide the nanoseconds returned, >> (or it could be a factory) but wouldn't it help for fu

Re: [Python-Dev] PEP 564: Add new time functions with nanosecond resolution

2017-10-22 Thread Antoine Pitrou
Hi Victor, I made some small fixes to the PEP. As far as I'm concerned, the PEP is ok and should be approved :-) Regards Antoine. On Mon, 16 Oct 2017 12:42:30 +0200 Victor Stinner wrote: > Hi, > > While discussions on this PEP are not over on python-ideas, I proposed > this PEP directly on