gh-110014: Fix _POSIX_THREADS and _POSIX_SEMAPHORES usage by vstinner · Pull Request #110139 · python/cpython (original) (raw)
@encukou: "Oops", I have to add an exception to Tools/build/smelly.py
to tolerate the new symbol PY_TIMEOUT_MAX
. Before, Python only exported symbols starting with Py
, _Py
and __Py
(macOS). Copy of my comment:
"Legacy": some old symbols are prefixed by "PY_".
EXCEPTIONS = frozenset({ 'PY_TIMEOUT_MAX', })
I would prefer to prefix all public symbols with Py
and only have private symbols, but at least, now we have tooling to detect when new symbols with different prefix are added ;-)