GeezerVison is showing github.com — C API: Remove private C API functions (move them to the internal C API) · Issue #106320 · python/cpython
C API: Remove private C API functions (move them to the internal C API) #106320DescriptionOver the years, we accumulated many private functions as part of the public C API header files. I propose to remove them: move them to the internal C API.
If many C extensions are affected by these removals, it's a sign that we should consider promoted used private functions as public functions: provide a better API, add error handling, write documentation, write tests.
Summary: My plan to clarify private vs public functions in Python 3.13
Linked PRs
Reacted by littlebutt's workshop Activityvstinner commented on Jul 1, 2023 See also issue #106316: remove pytime.h header file (_PyTime functions). vstinner commented on Jul 1, 2023 See also issue #106084: C API: Remove private functions from abstract.h. vstinner commented on Jul 1, 2023 See also commit 0b51463:
Remove the following private functions of the C API:
* _PyCodecInfo_GetIncrementalDecoder()
* _PyCodecInfo_GetIncrementalEncoder()
* _PyCodec_DecodeText()
* _PyCodec_EncodeText()
* _PyCodec_Forget()
* _PyCodec_Lookup()
* _PyCodec_LookupTextEncoding()
vstinner commented on Jan 13, 2025 @clin1234:
@vstinner Given the number of commits in various projects affected by this, perhaps there should a comprehensive list of replacement functions for each corresponding private function included in the What's New section within 3.13's documentation.
Good idea: I created #128787 for that.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|