Skip to content

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

Closed
corona10 wants to merge 1 commit into
python:masterfrom
corona10:bpo-40522-decimal
Closed

bpo-40522: Use PyThreadState_Get() in decimal#24597
corona10 wants to merge 1 commit into
python:masterfrom
corona10:bpo-40522-decimal

Conversation

@corona10

@corona10corona10 commented Feb 20, 2021

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
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
Copy Markdown
MemberAuthor

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

Sign up for freeto 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

@corona10@vstinner@the-knights-who-say-ni@bedevere-bot