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-118915: Document `PyUnstable_InterpreterState_GetMainModule` by ZeroIntensity · Pull Request #128483 · python/cpython

Conversation

@ZeroIntensity

@ZeroIntensity ZeroIntensity commented Jan 4, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member
  • Issue: Undocumented 3.13 C API #118915

📚 Documentation preview 📚: https://cpython-previews--128483.org.readthedocs.build/en/128483/c-api/init.html#c.PyUnstable_InterpreterState_GetMainModule

Sorry, something went wrong.

Uh oh!

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

All reactions
@ZeroIntensity
Document PyUnstable_InterpreterState_GetMainModule
eed2dd9
@ZeroIntensity ZeroIntensity added docs Documentation in the Doc dir skip news topic-C-API labels Jan 4, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Jan 4, 2025
Undocumented 3.13 C API #118915
Open
61 of 78 tasks
@bedevere-app bedevere-app Bot added the awaiting review label Jan 4, 2025
@ZeroIntensity ZeroIntensity added the needs backport to 3.13 only security fixes label Jan 4, 2025
@erlend-aasland
erlend-aasland requested a review from ericsnowcurrently January 5, 2025 21:54
@ZeroIntensity
ZeroIntensity requested a review from encukou January 8, 2025 16:34
@encukou
encukou merged commit ea39c8b into python:main Jan 9, 2025
@miss-islington-app

miss-islington-app Bot commented Jan 9, 2025

Copy link
Copy Markdown

Thanks @ZeroIntensity for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

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 review label Jan 9, 2025
@encukou

encukou commented Jan 9, 2025

Copy link
Copy Markdown
Member

Thanks!

ZeroIntensity reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 9, 2025
@ZeroIntensity @miss-islington
pythongh-118915: Document PyUnstable_InterpreterState_GetMainModule (…
e24af8f
…pythonGH-128483)

(cherry picked from commit ea39c8b)

Co-authored-by: Peter Bierma <[email protected]>
@bedevere-app

bedevere-app Bot commented Jan 9, 2025

Copy link
Copy Markdown

GH-128677 is a backport of this pull request to the 3.13 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.13 only security fixes label Jan 9, 2025
@ZeroIntensity
ZeroIntensity deleted the document-getmainmodule branch January 9, 2025 15:42
encukou pushed a commit that referenced this pull request Jan 10, 2025
@miss-islington @ZeroIntensity
[3.13] gh-118915: Document PyUnstable_InterpreterState_GetMainModule (
65da5db
GH-128483) (GH-128677)

(cherry picked from commit ea39c8b)

Co-authored-by: Peter Bierma <[email protected]>
hroncok
hroncok reviewed Feb 5, 2025
View reviewed changes
Comment thread Doc/c-api/init.rst

.. c:function:: PyObject* PyUnstable_InterpreterState_GetMainModule(PyInterpreterState *interp)

Return a :term:`strong reference` to the ``__main__`` `module object <moduleobjects>`_

@hroncok hroncok Feb 5, 2025

Copy link
Copy Markdown
Contributor

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.

The moduleobjects link leads nowhere.

On https://docs.python.org/3.13/c-api/init.html#c.PyUnstable_InterpreterState_GetMainModule the link goes to https://docs.python.org/3.13/c-api/moduleobjects which gives error 404.

Sorry, something went wrong.

Uh oh!

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

ZeroIntensity reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@hroncok hroncok Feb 5, 2025

Copy link
Copy Markdown
Contributor

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.

#129691

Sorry, something went wrong.

Uh oh!

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

All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently
@encukou encukou Awaiting requested review from encukou
1 more reviewer
@hroncok hroncok hroncok left review comments
Reviewers whose approvals may not affect merge requirements

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 topic-C-API

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.

3 participants

@ZeroIntensity @encukou @hroncok
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.