Skip to content
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

Remove Py_BUILD_CORE_MODULE and Py_BUILD_CORE_MODULE in rotatingtree.c #116181

Closed
aisk opened this issue Mar 1, 2024 · 1 comment
Closed

Remove Py_BUILD_CORE_MODULE and Py_BUILD_CORE_MODULE in rotatingtree.c #116181

aisk opened this issue Mar 1, 2024 · 1 comment
Labels
type-feature A feature request or enhancement

Comments

@aisk
Copy link
Member

aisk commented Mar 1, 2024

Feature or enhancement

Proposal:

Currently, we require Py_Mutex to isolate the states of pseudo random generator in rotatingtree.c, thus the Py_BUILD_CORE_MODULE was introduced in #115301, but we should refrain from using Py_BUILD_CORE_MODULE or Py_BUILD_CORE_BUILTIN to build non-builtin stdlib modules.

Therefore, we should either remove them once Py_Mutex becomes public or explore alternative solutions to address this issue.

Has this already been discussed elsewhere?

Previous discussion: #115301 (comment)

Links to previous discussion of this feature:

No response

Linked PRs

@ericsnowcurrently
Copy link
Member

nosy @ericsnowcurrently

@aisk aisk changed the title Remove Py_BUILD_CORE_MODULE and in rotatingtree.c` Remove Py_BUILD_CORE_MODULE and Py_BUILD_CORE_MODULE in rotatingtree.c Mar 2, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 3, 2024
…E in rotatingtree.c (pythonGH-121260)

(cherry picked from commit 705a123)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
kumaraditya303 pushed a commit that referenced this issue Jul 3, 2024
…LE in rotatingtree.c (GH-121260) (#121307)

gh-116181: Remove Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE in rotatingtree.c (GH-121260)
(cherry picked from commit 705a123)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants