PEP 564 implementation

Merged Bitbucket Importer requested to merge branch/py3.7-pep564 into branch/py3.7

Created originally on Bitbucket by Yannick_Jadoul (Yannick Jadoul)

The only thing that’s not tested is time.clock_settime_ns (but neither is time.clock_settime). Not that straightforward to test without messing up the time of the host system?

Cfr. and

Two remarks:

  • I don't fully understand what widen does or when it's necessary, so I imitated existing usage. But please check.
  • rposix.CLOCK_TICKS_PER_SECOND feels like it should be an int rather than float, but since it's in a different module, I didn't dare changing it. Should I still do so?

(was PR #673 (closed) before I stupidly killed my own fork without thinking of open PRs)

Merge request reports