diff options
author | Brett Cannon <brett@python.org> | 2021-03-24 15:26:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 15:26:56 (GMT) |
commit | 9cb31d671646a5ff0901f79d2d61022621447190 (patch) | |
tree | 07877b815e17e8def80ed4e70c385b4b3a23b5af /Misc | |
parent | 3ba3d513b1e3c63d09cb798b982a9e6c369cea4c (diff) | |
download | cpython-9cb31d671646a5ff0901f79d2d61022621447190.zip cpython-9cb31d671646a5ff0901f79d2d61022621447190.tar.gz cpython-9cb31d671646a5ff0901f79d2d61022621447190.tar.bz2 |
bpo-42137: have ModuleType.__repr__ prefer __spec__ over module_repr() (GH-24953)
This is to work towards the removal of the use of module_repr() in Python 3.12 (documented as deprecated since 3.4).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-03-20-19-54-47.bpo-42137.A8aQvj.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-03-20-19-54-47.bpo-42137.A8aQvj.rst b/Misc/NEWS.d/next/Core and Builtins/2021-03-20-19-54-47.bpo-42137.A8aQvj.rst new file mode 100644 index 0000000..e13ce49 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-03-20-19-54-47.bpo-42137.A8aQvj.rst @@ -0,0 +1,2 @@ +The import system now prefers using ``__spec__`` for ``ModuleType.__repr__`` +over ``module_repr()``. |