Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-115754: Export Py_None, Py_False, Py_True as symbols#115755

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
vstinner wants to merge2 commits intopython:mainfromvstinner:export_constants

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedFeb 21, 2024
edited by bedevere-appbot
Loading

In the limited C API and the stable ABI, implement Py_None, Py_False and Py_True constants are symbols.

@vstinner
Copy link
MemberAuthor

vstinner commentedFeb 21, 2024
edited
Loading

Two more constants to consider:

#define Py_Ellipsis (&_Py_EllipsisObject)#define Py_NotImplemented (&_Py_NotImplementedStruct)

Update: I completed my PR to also cover these two constants.

@vstinnervstinner requested a review froma team as acode ownerFebruary 21, 2024 10:45
In the limited C API and the stable ABI, implement Py_None, Py_False,Py_True, Py_Ellipsis and Py_NotImplemented constants are symbols.
@vstinner
Copy link
MemberAuthor

Counter-proposition:#116572 implement these constants as function calls in the limited C API.

@vstinner
Copy link
MemberAuthor

The C API Working Group chose to go with a function call instead:capi-workgroup/decisions#16

@vstinnervstinner deleted the export_constants branchMarch 18, 2024 16:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@encukouencukouAwaiting requested review from encukouencukou is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ZeroIntensityZeroIntensityAwaiting requested review from ZeroIntensityZeroIntensity will be requested when the pull request is marked ready for reviewZeroIntensity is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp