diff options
author | scoder <stefan_ml@behnel.de> | 2020-06-10 16:09:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 16:09:01 (GMT) |
commit | 24b8bad6d30ae4fb37ee686a073adfa5308659f9 (patch) | |
tree | 31e77aa0061179f134284fd8e0a984a53b91585d /Misc/NEWS.d | |
parent | ec88e1bca81a167e6d5c0ac635e22f84298cb1df (diff) | |
download | cpython-24b8bad6d30ae4fb37ee686a073adfa5308659f9.zip cpython-24b8bad6d30ae4fb37ee686a073adfa5308659f9.tar.gz cpython-24b8bad6d30ae4fb37ee686a073adfa5308659f9.tar.bz2 |
bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is not set yet. (GH-20273)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/C API/2020-05-20-19-11-12.bpo-40703.qQXfW8.rst | 2 |
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". |