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-108512: Add and use new replacements for PySys_GetObject() (alt) by serhiy-storchaka · Pull Request #129736 · python/cpython

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Feb 6, 2025 •
edited by github-actions Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Add functions PySys_GetAttr() and PySys_GetAttrString().

This is an alternative to #111035 which only adds functions that request optional attributes, renamed to PySys_GetAttr() and PySys_GetAttrString(), to the public C API. Functions that raise RuntimeError for absent attributes are added as internal functions _PySys_GetRequiredAttr() and _PySys_GetRequiredAttrString().

  • Issue: C API: Add a replacement for PySys_GetObject #108512

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@serhiy-storchaka
pythongh-108512: Add and use new replacements for PySys_GetObject()
fad6874
Add functions PySys_GetAttr() and PySys_GetAttrString().
@serhiy-storchaka serhiy-storchaka added the topic-C-API label Feb 6, 2025
@serhiy-storchaka
serhiy-storchaka requested review from a team, FFY00, encukou, ericsnowcurrently, kumaraditya303 and markshannon as code owners February 6, 2025 16:42
@bedevere-app bedevere-app Bot added the awaiting core review label Feb 6, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Feb 6, 2025
C API: Add a replacement for PySys_GetObject #108512
Closed
@kumaraditya303
kumaraditya303 removed their request for review February 10, 2025 12:03
This was referenced Feb 24, 2025
Add replacements for PySys_GetObject() capi-workgroup/decisions#54
Closed
gh-130163: Fix possible crashes related to PySys_GetObject() #130503
Merged
Crash when concurrently writing with print and concurrently modifying sys.stdout #130163
Closed
serhiy-storchaka added 2 commits February 25, 2025 23:23
@serhiy-storchaka
Merge branch 'main' into capi-PySys_GetAttr2
982eeac
@serhiy-storchaka
Remove Include/cpython/sysmodule.h.
e407aa3
@serhiy-storchaka
serhiy-storchaka marked this pull request as draft May 21, 2025 18:54
@bedevere-app bedevere-app Bot removed the awaiting core review label May 21, 2025
@serhiy-storchaka serhiy-storchaka closed this May 28, 2025
@serhiy-storchaka
serhiy-storchaka deleted the capi-PySys_GetAttr2 branch May 28, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@encukou encukou Awaiting requested review from encukou encukou is a code owner
@ericsnowcurrently ericsnowcurrently Awaiting requested review from ericsnowcurrently ericsnowcurrently is a code owner
@FFY00 FFY00 Awaiting requested review from FFY00 FFY00 is a code owner
@markshannon markshannon Awaiting requested review from markshannon markshannon is a code owner
@ZeroIntensity ZeroIntensity Awaiting requested review from ZeroIntensity ZeroIntensity will be requested when the pull request is marked ready for review ZeroIntensity is a code owner
@brettcannon brettcannon Awaiting requested review from brettcannon brettcannon will be requested when the pull request is marked ready for review brettcannon is a code owner
@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan will be requested when the pull request is marked ready for review ncoghlan is a code owner
@warsaw warsaw Awaiting requested review from warsaw warsaw will be requested when the pull request is marked ready for review warsaw is a code owner
@kumaraditya303 kumaraditya303 Awaiting requested review from kumaraditya303 kumaraditya303 will be requested when the pull request is marked ready for review kumaraditya303 is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner will be requested when the pull request is marked ready for review AA-Turner is a code owner

Uh oh!

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

Assignees

No one assigned

Labels

topic-C-API

Projects

None yet

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.

1 participant

@serhiy-storchaka
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.