FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-115754: Export Py_None, Py_False, Py_True as symbols by vstinner · Pull Request #115755 · python/cpython · GitHub

/ cpython Public

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

Closed
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:export_constants
Closed

gh-115754: Export Py_None, Py_False, Py_True as symbols#115755
vstinner wants to merge 2 commits into
python:mainfrom
vstinner:export_constants

Conversation

vstinner commented Feb 21, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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

vstinner commented Feb 21, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

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.

vstinner requested a review from a team as a code owner February 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.

Copy link
Copy Markdown
Member Author

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

Copy link
Copy Markdown
Member Author

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

vstinner closed this Mar 18, 2024
vstinner deleted the export_constants branch March 18, 2024 16:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL