classification
Title: PyThread_xxx() not available when using limited API
Type: enhancement Stage:
Components: C API Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: VZ, nanjekyejoannah
Priority: normal Keywords:

Created on 2019-12-23 14:23 by VZ, last changed 2020-01-15 21:38 by vstinner.

Messages (1)
msg358813 - (view) Author: Vadim Zeitlin (VZ) Date: 2019-12-23 14:23
These functions (e.g. PyThread_allocate_lock() etc) are not declared inside

#if !defined(Py_LIMITED_API)

in pythread.h, yet they're not exported from python3.lib.

IMHO, ideal would be to just provide these functions in the library, as they exist since basically always, but if the intention is to not make them part of the limited API, a guard around their declarations in the header should be added so that using them at least results in link-time errors instead of compile-time ones when using limited API.
History
Date User Action Args
2020-01-15 21:38:34vstinnersetnosy: - vstinner
2019-12-28 18:22:33nanjekyejoannahsetnosy: + vstinner, nanjekyejoannah
2019-12-23 14:23:44VZcreate