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

bpo-41111: Move the Py_LIMITED_API macro of xxlimited module from setup.py to xxlimited.c.#25115

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
shihai1991 wants to merge2 commits intopython:masterfromshihai1991:bpo_41111

Conversation

shihai1991
Copy link
Member

@shihai1991shihai1991 commentedMar 31, 2021
edited by vstinner
Loading

@shihai1991shihai1991 changed the titlebpo-4111: Move the Py_LIMITED_API macro of xxlimited module from setup.py to xxlimited.c.bpo-41111: Move the Py_LIMITED_API macro of xxlimited module from setup.py to xxlimited.c.Mar 31, 2021
@shihai1991shihai1991 requested a review froma team as acode ownerApril 1, 2021 15:36
self.add(Extension('xxlimited_35', ['xxlimited_35.c'],
define_macros=[('Py_LIMITED_API','0x03050000')]))
define_macros=[('WITH_Py_LIMITED_API',1)]))
else:
# Debug mode: Build xxlimited with the full API
# (which is compatible with the limited one)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hum, I'm disappointed that CPython doesn't even support its own stable ABI in debug mode. So I createdhttps://bugs.python.org/issue43688 to also support the limited C API in debug mode.

@@ -55,6 +55,10 @@
pass
*/

/* xxlimited with the limited API. */
#ifdef WITH_Py_LIMITED_API
# define Py_LIMITED_API 0x03100000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

0x03100000 is wrong: it must be 0x030a0000 (the bug exists in the current code). I fixed the issue in my PR#25131.

@vstinner
Copy link
Member

Oops. I forgot to publish my review. In the meanwhile, I fixed both issues inhttps://bugs.python.org/issue43688.

I created a new PR: PR#25151.

@vstinner
Copy link
Member

I merged PR#25151 instead, I marked you as a co-author of my change ;-)

shihai1991 reacted with hooray emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@vstinnervstinnervstinner left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@shihai1991@vstinner@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp