commit | fb41e7290e536da95005d8065e91d259aa4a3556 | [log] [tgz] |
---|---|---|
author | William S Fulton <wsf@fultondesigns.co.uk> | Sat Mar 16 11:42:14 2024 +0000 |
committer | William S Fulton <wsf@fultondesigns.co.uk> | Mon Mar 25 07:52:50 2024 +0000 |
tree | 8c180b24a2ce17d4f6cf50d1c406b8f121602cd6 | |
parent | 29b1bdb8a4fe2b8fcd05f7ddfd2dac0181b2d2f4 [diff] |
Strict Python stable abi conformance fix for PyUnicode_GetLength PyUnicode_GetLength is officially documented as being in the stable abi from python-3.7 onwards. It is is actually available in the Python headers when compiling with Py_LIMITED_API set to 0x03030000 (python-3.3) and later. This change ensures it is only used when Py_LIMITED_API is set to 0x03070000 (python-3.7) and later for strict conformance.