Skip to content

gh-110850: Partially revert "gh-106316: Remove pytime.h header file (#106317) #115348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

encukou
Copy link
Member

@encukou encukou commented Feb 12, 2024

If the C API WG doesn't agree on #115215, we should merge this to restore the 3.12 status quo.


📚 Documentation preview 📚: https://cpython-previews--115348.org.readthedocs.build/

…ader file (python#106317)"

This reverts commit 46d7761,
and returns to the  status quo (3.12).

Tests are left in _testinternalcapi; this sounds appropriate for
underscored functions.
@encukou encukou changed the title gh-110850 Partially revert "gh-106316: Remove pytime.h header file (#106317) gh-110850: Partially revert "gh-106316: Remove pytime.h header file (#106317) Feb 12, 2024
Following the recommendation in the c-analyzer traceback:

 Python/lock.c - TIME_TO_BE_FAIR_NS not supported (typespec (unknown))
 [...]
 If the tool reports an unsupported global variable and
 it is actually const (and thus supported) then first try
 fixing the declaration appropriately in the code.  If that
 doesn't work then add the variable to the "should be const"
 section of Tools/c-analyzer/cpython/ignored.tsv.

Not sure how to fix the declaration appropriately, so adding it to
the ignore list for now. It is declared as const.
@encukou encukou added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 12, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @encukou for commit 55b83ab 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Feb 12, 2024
@vstinner
Copy link
Member

If the C API WG doesn't agree on #115215, we should merge this to restore the 3.12 status quo.

The C API WG agrees, so I suppose that this PR can be closed.

@vstinner vstinner closed this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants