GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-140550: Docs notes for PEP 793 by encukou · Pull Request #151661 · python/cpython

Conversation

@encukou

@encukou encukou commented Jun 18, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Here are a few more things for the docs of PEP 793:

  • Update slot-related advice in the abi3t migration guide
  • Note that inittab doesn't use the PEP 793 API
  • Add caveats for code in the export function
  • Fix class name in the PyObject_GetTypeData/Py_TYPE warning
  • Issue: Implement PEP 793 – PyModExport #140550

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
encukou added 3 commits June 18, 2026 16:11
@encukou
Update abi3t migration guide's slot-related advice
d7df745
This integrates content from PEP 793's Porting Guide section.
@encukou
Correct class name in PyTYPE discussion
cb7593c
@encukou
Inittab note & caveats for code in the export function
686adff
@encukou
encukou requested review from FFY00, ZeroIntensity, brettcannon, ericsnowcurrently, ncoghlan and warsaw as code owners June 18, 2026 15:06
@encukou encukou added docs Documentation in the Doc dir needs backport to 3.15 bugs and security fixes labels Jun 18, 2026
@github-project-automation github-project-automation Bot added this to Docs PRs Jun 18, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jun 18, 2026
@bedevere-app bedevere-app Bot added the skip news label Jun 18, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Jun 18, 2026
Implement PEP 793 – PyModExport #140550
Open
19 of 25 tasks
@bedevere-app bedevere-app Bot added the awaiting core review label Jun 18, 2026
@read-the-docs-community

read-the-docs-community Bot commented Jun 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33213157 | 📁 Comparing d304062 against main (3cd02a1)

  🔍 Preview build  

8 files changed · ± 8 modified

± Modified

  • c-api/bytes.html
  • c-api/extension-modules.html
  • c-api/import.html
  • howto/abi3t-migration.html
  • library/logging.html
  • library/os.html
  • library/tkinter.html
  • whatsnew/changelog.html
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ZeroIntensity
ZeroIntensity reviewed Jun 18, 2026
View reviewed changes
Comment thread Doc/c-api/extension-modules.rst Outdated
If you need to use any Python C API, it is recommended to call
:c:func:`PyABIInfo_Check` first to raise an exception,
rather than crash, in common cases of ABI mismatch.
Also, note that in :term:`free-threaded <free threading>` builds the export

@ZeroIntensity ZeroIntensity Jun 18, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

There's a :term:`free-threaded build` term for this.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

encukou reacted with heart emoji
All reactions
  • ❤️ 1 reaction
Comment thread Doc/c-api/extension-modules.rst Outdated
Comment on lines +110 to +111
function may be called without the :term:`GIL` held even if the extension
specifies that the GIL is required.

@ZeroIntensity ZeroIntensity Jun 18, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Could you clarify what this means? "Calling with the GIL held" sounds like the old terminology for calling without an attached thread state. If export functions just need synchronization, then let's just say that.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@encukou encukou Jun 19, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It's really the GIL here: Py_MOD_GIL_USED (or leaving Py_mod_gil out) only takes effect when Python sees it, after the hook returns.
Agree that it's confusing (and I missed a caveat, too!)
I'll expand this.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Doc/howto/abi3t-migration.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@brettcannon
brettcannon removed their request for review June 18, 2026 20:09
encukou and others added 2 commits June 19, 2026 09:39
@encukou @ZeroIntensity
Update Doc/howto/abi3t-migration.rst
a893b57
Co-authored-by: Peter Bierma <[email protected]>
@encukou
Clarify export hook caveats
d304062
@encukou
encukou merged commit 763cc22 into python:main Jun 24, 2026
30 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jun 24, 2026
@miss-islington-app

miss-islington-app Bot commented Jun 24, 2026

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting core review label Jun 24, 2026
@bedevere-app

bedevere-app Bot commented Jun 24, 2026

Copy link
Copy Markdown

GH-152064 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jun 24, 2026
@encukou
encukou deleted the pep793-create-migration-note branch June 24, 2026 12:00
encukou added a commit that referenced this pull request Jun 24, 2026
@miss-islington @encukou @ZeroIntensity
[3.15] gh-140550: Docs additions & fixups for PEP 793 (GH-151661) (GH…
bc52a01
…-152064)

gh-140550: Docs additions & fixups for PEP 793 (GH-151661)
(cherry picked from commit 763cc22)

Co-authored-by: Petr Viktorin <[email protected]>
Co-authored-by: Peter Bierma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ZeroIntensity ZeroIntensity ZeroIntensity left review comments
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan is a code owner
@warsaw warsaw Awaiting requested review from warsaw warsaw is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

docs Documentation in the Doc dir skip news

Projects

Docs PRs
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@encukou @ZeroIntensity
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.