This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: CLOCK_MONOTONIC_RAW available on macOS
Type: enhancement Stage: resolved
Components: Documentation, macOS Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, miss-islington, nanjekyejoannah, ned.deily, rfmoz, ronaldoussoren, vstinner
Priority: normal Keywords: patch

Created on 2019-01-11 09:32 by rfmoz, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
001.patch rfmoz, 2019-01-11 09:32 Patch to Doc/library/time.rst
Pull Requests
URL Status Linked Edit
PR 11517 merged nanjekyejoannah, 2019-01-11 10:47
PR 11517 merged nanjekyejoannah, 2019-01-11 10:47
PR 11517 merged nanjekyejoannah, 2019-01-11 10:47
PR 11518 merged miss-islington, 2019-01-11 13:26
PR 11518 merged miss-islington, 2019-01-11 13:26
PR 11518 merged miss-islington, 2019-01-11 13:26
Messages (10)
msg333445 - (view) Author: Ricardo Fraile (rfmoz) Date: 2019-01-11 09:32
Add macOS to CLOCK_MONOTONIC_RAW description because it is already available since 10.12.
msg333447 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-01-11 10:22
Ronald, Ned: What is the macOS version used to build Python binaries distributed on python.org? Do we get the constant on macOS 10.12 if binaries are built on macOS 10.11 for example?

I guess that people building Python from source like hombrew will get the constant.

Joannah: Can you please convert attached patch into a pull request? Please mention Ricardo Fraile as co-author of the change (mention his name in the commit message). Such change doesn't need to be mentioned in the changelog (no NEWS entry needed).
msg333452 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2019-01-11 10:51
@vstinner I have created the PR for this.
msg333456 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-01-11 11:01
@Ricardo: Can you please give you email address? It's to credit you in the commit message. (You don't have to, it's up to you to share it or not :-))
msg333459 - (view) Author: Ricardo Fraile (rfmoz) Date: 2019-01-11 11:31
@vstinner here you have rfraile@rfraile.eu :)
msg333462 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2019-01-11 12:15
@Ricardo, Thanks, commit message updated.
msg333464 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-01-11 13:19
New changeset fd7d539be3ce1cc098a4f104b7a7816ca00add16 by Victor Stinner (Joannah Nanjekye) in branch 'master':
bpo-35716: Update time.CLOCK_MONOTONIC_RAW doc (GH-11517)
https://github.com/python/cpython/commit/fd7d539be3ce1cc098a4f104b7a7816ca00add16
msg333465 - (view) Author: miss-islington (miss-islington) Date: 2019-01-11 13:32
New changeset 8a5b1aa98f97923c39734b508aead152a5a1c911 by Miss Islington (bot) in branch '3.7':
bpo-35716: Update time.CLOCK_MONOTONIC_RAW doc (GH-11517)
https://github.com/python/cpython/commit/8a5b1aa98f97923c39734b508aead152a5a1c911
msg333466 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-01-11 13:33
Thanks Joannah Nanjekye for the PR. I rewrote the commit message to format properly the co-authored-by tag. The doc has been updated in 3.7 and master.

Ricardo Fraile: *Please*. Don't use this clock :-) It must not be used except if you really understand well what you are doing :-)

https://www.python.org/dev/peps/pep-0418/#clock-monotonic-clock-monotonic-raw-clock-boottime
msg333473 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2019-01-11 14:44
Victor, the binaries are build on the macOS version mentioned in the download. That is, the modern 64-bit installers are build on macOS 10.9 with the 10.9 SDK, the older 32/64-bit intel installers are build on macOS 10.6 with the 10.6 SDK.

With some work it should be possible to build the 64-bit installer on newer macOS releases, but that requires some work to ensure the code deals well with weakly linked symbols.  I've added such support in the past for older macOS releases, so this is definitely doable.  I'd love to work on this, but don't know when I'll have time to do so.

BTW. I'm pretty sure there's an issue about this, but cannot find it at the moment.
History
Date User Action Args
2022-04-11 14:59:10adminsetgithub: 79897
2019-01-11 14:44:16ronaldoussorensetmessages: + msg333473
2019-01-11 13:33:38vstinnersetstatus: open -> closed
versions: + Python 3.7, Python 3.8
messages: + msg333466

resolution: fixed
stage: patch review -> resolved
2019-01-11 13:32:14miss-islingtonsetnosy: + miss-islington
messages: + msg333465
2019-01-11 13:26:39miss-islingtonsetpull_requests: + pull_request11091
2019-01-11 13:26:28miss-islingtonsetpull_requests: + pull_request11090
2019-01-11 13:26:20miss-islingtonsetpull_requests: + pull_request11089
2019-01-11 13:19:59vstinnersetmessages: + msg333464
2019-01-11 12:15:37nanjekyejoannahsetmessages: + msg333462
2019-01-11 11:31:59rfmozsetmessages: + msg333459
2019-01-11 11:01:10vstinnersetmessages: + msg333456
2019-01-11 10:51:27nanjekyejoannahsetmessages: + msg333452
2019-01-11 10:47:44nanjekyejoannahsetstage: patch review
pull_requests: + pull_request11088
2019-01-11 10:47:30nanjekyejoannahsetstage: (no value)
pull_requests: + pull_request11087
2019-01-11 10:47:16nanjekyejoannahsetstage: (no value)
pull_requests: + pull_request11086
2019-01-11 10:22:49vstinnersetnosy: + nanjekyejoannah
messages: + msg333447
2019-01-11 10:18:43vstinnersetnosy: + ronaldoussoren, ned.deily
components: + macOS
2019-01-11 09:32:48rfmozcreate