summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-10 16:43:10 (GMT)
committerGitHub <noreply@github.com>2020-06-10 16:43:10 (GMT)
commit9419158a3e67ba2eadf33215568003ed723b0a98 (patch)
tree220e7e768c66fa0710d7a7fd4445d10ac1395d0f /Misc
parent3b97d1becbe08cf56c58d9c740a4622cbf6285fd (diff)
downloadcpython-9419158a3e67ba2eadf33215568003ed723b0a98.zip
cpython-9419158a3e67ba2eadf33215568003ed723b0a98.tar.gz
cpython-9419158a3e67ba2eadf33215568003ed723b0a98.tar.bz2
bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is not set yet. (GH-20273) (GH-20782)
(cherry picked from commit 24b8bad6d30ae4fb37ee686a073adfa5308659f9)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2020-05-20-19-11-12.bpo-40703.qQXfW8.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-05-20-19-11-12.bpo-40703.qQXfW8.rst b/Misc/NEWS.d/next/C API/2020-05-20-19-11-12.bpo-40703.qQXfW8.rst
new file mode 100644
index 0000000..5385a2d
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-05-20-19-11-12.bpo-40703.qQXfW8.rst
@@ -0,0 +1,2 @@
+The PyType_FromSpec*() functions no longer overwrite the type's "__module__" attribute
+if it is set via "Py_tp_members" or "Py_tp_getset".