homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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

Created on 2019年12月23日 14:23 by VZ, last changed 2022年04月11日 14:59 by admin. This issue is now closed.

Messages (2)
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.
msg396342 - (view) Author: Petr Viktorin (petr.viktorin) * (Python committer) Date: 2021年06月22日 14:38
In Python 3.10, the functions:
PyThread_allocate_lock, PyThread_exit_thread, PyThread_free_lock, PyThread_get_stacksize, PyThread_get_thread_ident, PyThread_get_thread_native_id, PyThread_init_thread, PyThread_release_lock, PyThread_set_stacksize, PyThread_start_new_thread
are exported as part of the stable ABI. They were added in bpo-42545 and bpo-43795 (PEP 652).
Sorry for the delay.
History
Date User Action Args
2022年04月11日 14:59:24adminsetgithub: 83304
2021年06月22日 14:38:28petr.viktorinsetstatus: open -> closed

nosy: + petr.viktorin
messages: + msg396342

resolution: fixed
stage: resolved
2020年01月15日 21:38:34vstinnersetnosy: - vstinner
2019年12月28日 18:22:33nanjekyejoannahsetnosy: + vstinner, nanjekyejoannah
2019年12月23日 14:23:44VZcreate

AltStyle によって変換されたページ (->オリジナル) /