8000 PEP 564: Minor fixes, fix typos · python/peps@86c06a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86c06a7

Browse files
committed
PEP 564: Minor fixes, fix typos
1 parent fcbf612 commit 86c06a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pep-0564.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ but use nanoseconds as Python ``int``.
169169
For example, ``time.monotonic_ns() == int(time.monotonic() * 1e9)`` if
170170
``monotonic()`` value is small enough to not lose precision.
171171

172-
These functions are needed because they handle big timestamps, like
172+
These functions are needed because they handle large timestamps, like
173173
time.time() which uses the UNIX epoch as reference, and so their version
174174
without the ``_ns`` suffix are likely to lose precision at the
175175
nanosecond resolution.
@@ -182,8 +182,8 @@ Since the ``time.clock()`` function was deprecated in Python 3.3, no
182182

183183
Python has other functions handling time. No nanosecond variant was
184184
proposed because their internal resolution is greater or equal to 1 us,
185-
or because their maximum value is a small enough to lose precision. For
186-
example, the maximum value of ``clock_getres()`` is likely to be 1
185+
or because their maximum value is a small enough to not lose precision.
186+
For example, the maximum value of ``clock_getres()`` should be 1
187187
second.
188188

189189
Example of unchanged functions:
@@ -200,8 +200,8 @@ Example of unchanged functions:
200200

201201
See also the `Annex: Clocks Resolution in Python`_.
202202

203-
New nanosecond flavor of these functions may be added later if an
204-
operating system adds a new function provided better resolution.
203+
A new nanosecond flavor of these functions may be added later if an
204+
operating system adds a new function providing better resolution.
205205

206206

207207
Alternatives and discussion
@@ -354,7 +354,7 @@ Example of script ot measure the smallest difference between two
354354
Linux
355355
-----
356356

357-
Linux (kernel 4.12 on Fedora 26):
357+
Clocks resolution measured in Python on Fedora 26 (kernel 4.12):
358358

359359
==================== ==========
360360
Function Resolution
@@ -387,7 +387,7 @@ Notes on resolutions:
387387
Windows
388388
-------
389389

390-
Windows 8.1:
390+
Clocks resolution measured in Python on Windows 8.1:
391391

392392
================= =============
393393
Function Resolution

0 commit comments

Comments
 (0)
0