summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-10-07 17:27:14 (GMT)
committerGitHub <noreply@github.com>2022-10-07 17:27:14 (GMT)
commit5ba4875aec2031003d7ba90fd0f06f281bdecbf9 (patch)
tree22a42a7dafc2ef9fc3c4827416427ca127b41553
parentcae7d1d7a713f8267daf5e4f2fff5cb1dad02c7c (diff)
downloadcpython-5ba4875aec2031003d7ba90fd0f06f281bdecbf9.zip
cpython-5ba4875aec2031003d7ba90fd0f06f281bdecbf9.tar.gz
cpython-5ba4875aec2031003d7ba90fd0f06f281bdecbf9.tar.bz2
gh-96415: Remove `types._cell_factory` from a module namespace (#96416)
Closes #96415
-rw-r--r--Lib/types.py2
-rw-r--r--Misc/NEWS.d/next/Library/2022-08-30-12-32-00.gh-issue-96415.6W7ORH.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 2e73fbc..f835312 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -60,7 +60,7 @@ except TypeError as exc:
GetSetDescriptorType = type(FunctionType.__code__)
MemberDescriptorType = type(FunctionType.__globals__)
-del sys, _f, _g, _C, _c, _ag # Not for export
+del sys, _f, _g, _C, _c, _ag, _cell_factory # Not for export
# Provide a PEP 3115 compliant mechanism for class creation
diff --git a/Misc/NEWS.d/next/Library/2022-08-30-12-32-00.gh-issue-96415.6W7ORH.rst b/Misc/NEWS.d/next/Library/2022-08-30-12-32-00.gh-issue-96415.6W7ORH.rst
new file mode 100644
index 0000000..0c93abf
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-08-30-12-32-00.gh-issue-96415.6W7ORH.rst
@@ -0,0 +1 @@
+Remove ``types._cell_factory`` from module namespace.