[Python-checkins] bpo-36896: Clarify that some types constructors are unstable (GH-13271)

Petr Viktorin webhook-mailer at python.org
Sun Jun 2 20:43:25 EDT 2019


https://github.com/python/cpython/commit/13136e83a637a9f1cfbada7e93097005296659b4
commit: 13136e83a637a9f1cfbada7e93097005296659b4
branch: master
author: Matthias Bussonnier <bussonniermatthias at gmail.com>
committer: Petr Viktorin <encukou at gmail.com>
date: 2019-06-03T02:43:21+02:00
summary:

bpo-36896: Clarify that some types constructors are unstable (GH-13271)

files:
A Misc/NEWS.d/next/Documentation/2019-05-31-10-46-36.bpo-36896.wkXTW9.rst
M Doc/library/types.rst

diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index e629c2935f27..a21fb44dda5d 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -98,6 +98,9 @@ the types that arise only incidentally during processing such as the
 Typical use of these names is for :func:`isinstance` or
 :func:`issubclass` checks.
 
+
+If you instantiate any of these types, note that signatures may vary between Python versions.
+
 Standard names are defined for the following types:
 
 .. data:: FunctionType
diff --git a/Misc/NEWS.d/next/Documentation/2019-05-31-10-46-36.bpo-36896.wkXTW9.rst b/Misc/NEWS.d/next/Documentation/2019-05-31-10-46-36.bpo-36896.wkXTW9.rst
new file mode 100644
index 000000000000..d75fccad6c0f
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2019-05-31-10-46-36.bpo-36896.wkXTW9.rst
@@ -0,0 +1,2 @@
+Clarify that some types have unstable constructor signature between Python
+versions.



More information about the Python-checkins mailing list