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

bpo-40522: Use PyThreadState_Get() in decimal #24597

Closed
wants to merge 1 commit into from

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Feb 20, 2021

@vstinner
Copy link
Member

In commit 6207810, I wanted to clarify that the function is used in practice rather than the macro in public Python header files. But in _decimal, I suggest either to leave it unchanged, or switch to faster _PyThreadState_GET() which is always inlined.

@corona10
Copy link
Member Author

@vstinner Got it, Okay let's leave it to be unchanged ;)

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.

4 participants