Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-106320: Remove private _PyUnicode C API #107185

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 24, 2023

Move private _PyUnicode functions to the internal C API (pycore_unicodeobject.h):

  • _PyUnicode_IsCaseIgnorable()
  • _PyUnicode_IsCased()
  • _PyUnicode_IsXidContinue()
  • _PyUnicode_IsXidStart()
  • _PyUnicode_ToFoldedFull()
  • _PyUnicode_ToLowerFull()
  • _PyUnicode_ToTitleFull()
  • _PyUnicode_ToUpperFull()

No longer export these functions.

Move private _PyUnicode functions to the internal C API
(pycore_unicodeobject.h):

* _PyUnicode_IsCaseIgnorable()
* _PyUnicode_IsCased()
* _PyUnicode_IsXidContinue()
* _PyUnicode_IsXidStart()
* _PyUnicode_ToFoldedFull()
* _PyUnicode_ToLowerFull()
* _PyUnicode_ToTitleFull()
* _PyUnicode_ToUpperFull()

No longer export these functions.
@vstinner vstinner enabled auto-merge (squash) July 24, 2023 17:53
@vstinner vstinner merged commit d27eb1e into python:main Jul 24, 2023
18 checks passed
@vstinner vstinner deleted the pycore_unicode branch July 24, 2023 18:48
jtcave pushed a commit to jtcave/cpython that referenced this pull request Jul 27, 2023
Move private _PyUnicode functions to the internal C API
(pycore_unicodeobject.h):

* _PyUnicode_IsCaseIgnorable()
* _PyUnicode_IsCased()
* _PyUnicode_IsXidContinue()
* _PyUnicode_IsXidStart()
* _PyUnicode_ToFoldedFull()
* _PyUnicode_ToLowerFull()
* _PyUnicode_ToTitleFull()
* _PyUnicode_ToUpperFull()

No longer export these functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants