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

Appearance settings

GH-118761: Expose more core interpreter types in _types #132103

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

Merged
merged 10 commits into from
Apr 5, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensure EXPORT_STATIC_TYPE is used with static types
  • Loading branch information
AA-Turner committed Apr 5, 2025
commit 74aac08440c1458666bb594fcfa42d1c2a98e935
1 change: 1 addition & 0 deletions 1 Modules/_typesmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ _types_exec(PyObject *m)
{
#define EXPORT_STATIC_TYPE(NAME, TYPE) \
do { \
assert(PyUnstable_IsImmortal((PyObject *)&(TYPE))); \
if (PyModule_AddObjectRef(m, (NAME), (PyObject *)&(TYPE)) < 0) { \
AA-Turner marked this conversation as resolved.
Show resolved Hide resolved
return -1; \
} \
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.