summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-02-23 18:35:52 (GMT)
committerGitHub <noreply@github.com>2019-02-23 18:35:52 (GMT)
commitbe3b295838547bba267eb08434b418ef0df87ee0 (patch)
tree8daa92ecd7088d6ace08833f64ba2251be9b310f /Doc
parent175421b58cc97a2555e474f479f30a6c5d2250b0 (diff)
downloadcpython-be3b295838547bba267eb08434b418ef0df87ee0.zip
cpython-be3b295838547bba267eb08434b418ef0df87ee0.tar.gz
cpython-be3b295838547bba267eb08434b418ef0df87ee0.tar.bz2
bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731)
Move PyInterpreterState into the "internal" header files.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.8.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index a531d2d..72aaafd 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -571,6 +571,16 @@ Changes in the Python API
* ``PyGC_Head`` struct is changed completely. All code touched the
struct member should be rewritten. (See :issue:`33597`)
+* The ``PyInterpreterState`` struct has been moved into the "internal"
+ header files (specifically Include/internal/pycore_pystate.h). An
+ opaque ``PyInterpreterState`` is still available as part of the public
+ API (and stable ABI). The docs indicate that none of the struct's
+ fields are public, so we hope no one has been using them. However,
+ if you do rely on one or more of those private fields and have no
+ alternative then please open a BPO issue. We'll work on helping
+ you adjust (possibly including adding accessor functions to the
+ public API). (See :issue:`35886`.)
+
* Asyncio tasks can now be named, either by passing the ``name`` keyword
argument to :func:`asyncio.create_task` or
the :meth:`~asyncio.loop.create_task` event loop method, or by