Skip to content

Define PY_SSIZE_T_CLEAN#442

Merged
ltaylor16 merged 1 commit intodevelopfrom
py_ssize_t_clean
Nov 7, 2025
Merged

Define PY_SSIZE_T_CLEAN#442
ltaylor16 merged 1 commit intodevelopfrom
py_ssize_t_clean

Conversation

@ltaylor16
Copy link
Copy Markdown
Member

From Python docs:
Note: On Python 3.12 and older, the macro PY_SSIZE_T_CLEAN must be defined before including Python.h to use all # variants of formats (s#, y#, etc.) explained below. This is not necessary on Python 3.13 and later.

Load Python tests with -lpythonx.y instead of pythonx.y.a. Some installs of Python do not provide the static library, only shared.

From Python docs:
Note: On Python 3.12 and older, the macro PY_SSIZE_T_CLEAN must be
defined before including Python.h to use all # variants of formats
(s#, y#, etc.) explained below. This is not necessary on Python 3.13
and later.

Load Python tests with -lpythonx.y instead of pythonx.y.a.  Some
installs of Python do not provide the static library, only shared.
@ltaylor16 ltaylor16 merged commit 013f94d into develop Nov 7, 2025
3 checks passed
@ltaylor16 ltaylor16 deleted the py_ssize_t_clean branch November 19, 2025 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant