[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-06-28 Thread STINNER Victor


STINNER Victor  added the comment:

The function is part of the stable ABI so I prefer to keep it for now.
https://github.com/python/cpython/pull/26070#issuecomment-839871560

I close the issue.

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-14 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Should not they be kept for binary compatibility, so you can link with 
extensions compiled for older Python versions? They can be removed from 
headers, so newly compiled extensions will not be able to use them.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-14 Thread Inada Naoki


Inada Naoki  added the comment:

It seems they are stable ABI.

https://github.com/python/cpython/blob/56b8ea65d28bd865e2363e10e9f1c2ca3433ffc2/Misc/stable_abi.txt#L604
https://github.com/python/cpython/blob/56b8ea65d28bd865e2363e10e9f1c2ca3433ffc2/Misc/stable_abi.txt#L614

We may need to keep no-op API until Python 4?

--
nosy: +methane

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +24711
pull_request: https://github.com/python/cpython/pull/26071

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +24710
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/26070

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44117] [C API] Remove deprecated PyEval_InitThreads()

2021-05-12 Thread STINNER Victor


New submission from STINNER Victor :

Remove PyEval_InitThreads() and PyEval_ThreadsInitialized() functions. The GIL 
is created by Py_Initialize() since Python 3.7, and so calling 
PyEval_InitThreads() explicitly was useless since Python 3.7. Deprecated in 
3.9, PyEval_InitThreads() did nothing and PyEval_ThreadsInitialized() already 
returned true.

--
components: C API
messages: 393524
nosy: vstinner
priority: normal
severity: normal
status: open
title: [C API] Remove deprecated PyEval_InitThreads()
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com