Skip to content

gh-108767: Replace ctype.h functions with pyctype.h functions#108772

Merged
vstinner merged 2 commits intopython:mainfrom
vstinner:pyctype
Sep 1, 2023
Merged

gh-108767: Replace ctype.h functions with pyctype.h functions#108772
vstinner merged 2 commits intopython:mainfrom
vstinner:pyctype

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Sep 1, 2023

Replace <ctype.h> locale dependent functions with Python "pyctype.h" locale independent functions:

  • Replace isalpha() with Py_ISALPHA().
  • Replace isdigit() with Py_ISDIGIT().
  • Replace isxdigit() with Py_ISXDIGIT().
  • Replace tolower() with Py_TOLOWER().

Leave Modules/_sre/sre.c unchanged, it uses locale dependent functions on purpose.

Loading
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.

3 participants