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: PEP 793 reference documentation by encukou · Pull Request #141197 · python/cpython

Conversation

@encukou

@encukou encukou commented Nov 7, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

I'll still need a few more passes on this, but here's this week's draft for PEP 793 reference docs.

Since the PEP calls for soft-deprecation of the existing initialization function, this reorganizes the relevant docs to put the new way of doing things first, and de-emphasize the old.

Some bits, like the tutorial, are left out of this PR. (See the issue for a list.)

  • Issue: Implement PEP 793 – PyModExport #140550

📚 Documentation preview 📚: https://cpython-previews--141197.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

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

All reactions
@encukou
pythongh-140550: PEP 793 reference documentation
0142b5d
Since the PEP calls for soft-deprecation of the existing initialization
function, this reorganizes the relevant docs to put the new way of
doing things first, and de-emphasize the old.

Some bits, like the tutorial, are left out of this patch. (See the
issue for a list.)
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Nov 7, 2025
@github-project-automation github-project-automation Bot added this to Docs PRs Nov 7, 2025
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Nov 7, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Nov 7, 2025
Implement PEP 793 – PyModExport #140550
Open
19 of 25 tasks
@encukou encukou mentioned this pull request Nov 11, 2025
PyImport_CreateModuleFromInitfunc: Doc & test update itamaro/cpython#27
Merged
encukou added 3 commits November 12, 2025 13:51
@encukou
Merge in the main branch
394e814
@encukou
Fix some warnings
91d9a50
@encukou
Another pass
67219f1
@itamaro itamaro mentioned this pull request Nov 12, 2025
gh-116146: Add C-API to create module from spec and initfunc #139196
Merged
encukou added 3 commits November 13, 2025 13:33
@encukou
Merge in the main branch
1c1e22a
@encukou
Remove improved file from nitignore
43d6bbb
@encukou
Another pass
0c99bad
@encukou
encukou marked this pull request as ready for review November 13, 2025 14:33
@encukou
encukou requested review from AA-Turner, ericsnowcurrently and hugovk as code owners November 13, 2025 14:33
@bedevere-app bedevere-app Bot added the awaiting core review label Nov 13, 2025
efimov-mikhail
efimov-mikhail reviewed Nov 13, 2025
View reviewed changes
Comment thread Doc/howto/free-threading-extensions.rst Resolved

Uh oh!

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

Comment thread Doc/c-api/type.rst Resolved

Uh oh!

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

Comment thread Doc/howto/free-threading-extensions.rst Resolved

Uh oh!

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

sergey-miryanov
sergey-miryanov reviewed Nov 13, 2025
View reviewed changes
Comment thread Doc/c-api/extension-modules.rst Resolved

Uh oh!

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

sergey-miryanov
sergey-miryanov reviewed Nov 13, 2025
View reviewed changes
Comment thread Doc/c-api/type.rst Resolved

Uh oh!

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

encukou added 2 commits November 14, 2025 10:44
@encukou
Merge in the main branch
ce5c60a
@encukou
Link reference to PyModule_Exec added in python#139196
816023d
@encukou
encukou requested review from brettcannon, ncoghlan and warsaw as code owners November 14, 2025 09:45
@brettcannon
brettcannon removed their request for review November 14, 2025 23:45
encukou added 2 commits November 17, 2025 16:30
@encukou
PyModExport_modulename is not a real function
4f64511
@encukou
Move word out of link
19b911d
@encukou
Add refcounts.dat entries
41722c8
@encukou encukou mentioned this pull request Nov 18, 2025
Document the entire C API #141004
Closed
ZeroIntensity
ZeroIntensity reviewed Nov 21, 2025
View reviewed changes
Comment thread Doc/c-api/extension-modules.rst Resolved

Uh oh!

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

Comment thread Doc/c-api/extension-modules.rst Resolved

Uh oh!

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

Comment thread Doc/c-api/extension-modules.rst Resolved

Uh oh!

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

Comment thread Doc/c-api/type.rst Resolved

Uh oh!

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

encukou added 3 commits November 24, 2025 15:40
@encukou
Merge in the main branch
0cb2c10
@encukou
Remove extra space
38bbba5
@encukou
Adjust wording/formatting of *token*
ef677f2
ZeroIntensity
ZeroIntensity approved these changes Nov 25, 2025
View reviewed changes

@ZeroIntensity ZeroIntensity left a comment

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.

LGTM

Sorry, something went wrong.

Uh oh!

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

encukou reacted with rocket emoji
All reactions
  • 🚀 1 reaction
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Nov 25, 2025
@encukou
Merge in the main branch (conflict in versionadded for create/exec …
def2b03
…slots)
@encukou

encukou commented Nov 26, 2025

Copy link
Copy Markdown
Member Author

Thank you!

All reactions

Sorry, something went wrong.

Uh oh!

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

@encukou
encukou enabled auto-merge (squash) November 26, 2025 12:44
@encukou
encukou merged commit d7f0214 into python:main Nov 26, 2025
28 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 Nov 26, 2025
@bedevere-app bedevere-app Bot removed the awaiting merge label Nov 26, 2025
@encukou
encukou deleted the modexport-docs-ref branch November 26, 2025 13:50
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
@encukou @StanFromIreland
pythongh-140550: PEP 793 reference documentation (pythonGH-141197)
cfdfcd7
* pythongh-140550: PEP 793 reference documentation

Since the PEP calls for soft-deprecation of the existing initialization
function, this reorganizes the relevant docs to put the new way of
doing things first, and de-emphasize the old.

Some bits, like the tutorial, are left out of this patch. (See the
issue for a list.)
ashm-dev pushed a commit to ashm-dev/cpython that referenced this pull request Dec 8, 2025
@encukou @ashm-dev
pythongh-140550: PEP 793 reference documentation (pythonGH-141197)
da2348e
* pythongh-140550: PEP 793 reference documentation

Since the PEP calls for soft-deprecation of the existing initialization
function, this reorganizes the relevant docs to put the new way of
doing things first, and de-emphasize the old.

Some bits, like the tutorial, are left out of this patch. (See the
issue for a list.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sergey-miryanov sergey-miryanov sergey-miryanov left review comments
@efimov-mikhail efimov-mikhail efimov-mikhail left review comments
@ZeroIntensity ZeroIntensity ZeroIntensity approved these changes
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@hugovk hugovk Awaiting requested review from hugovk hugovk 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

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.

4 participants

@encukou @sergey-miryanov @efimov-mikhail @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.