gh-47146: Soft-deprecate structmember.h, expose its contents via Python.h by encukou · Pull Request #99014 · python/cpython · GitHub

github.com

Tin mới

encukou:structmember-public

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

PyMemberDef missing in limited API / Deprecate structmember.h #47146

Move structmember.h definitions to descrobject.h, adding PY_ prefixes

Add to limited API

All the docs These docs were ripe for an overhaul, so I did one when touching the code.

awaiting core review

awaiting core review

bpo-2897: Make PyMemberDef part of stable ABI; deprecate structmember.h #20462

Change the prefix to Py_, per PEP 7

Add back PY_AUDIT_READ

Expose PyMember_?etOne in Limited API (again?)

Fix footnotes in docs

Use the right prefix in stable_abi.toml

Move tests to _testcapi/, add tests for the new API

🔨 test-with-buildbots

🔨 test-with-buildbots

View reviewed changes

Learn more about hiding disruptive comments

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

Address review comments

Merge in the main branch

gh-97908: CAPI docs: Remove repeated struct names from member docs #100054

Remove documentation and internal use of the *RESTRICTED constants for PyMemberDef's flags field #80536

View reviewed changes

deps(python): enable Python 3.12 support metaopt/optree#90

builtins: exception, iterator and function attribute surface parity youknowone/pyre#950

cpyext: type mirrors, types built from C, and slots bound to the type that owns the method youknowone/pyre#1429