From 5ba4875aec2031003d7ba90fd0f06f281bdecbf9 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 7 Oct 2022 20:27:14 +0300 Subject: [PATCH] gh-96415: Remove `types._cell_factory` from a module namespace (#96416) Closes #96415 --- Lib/types.py | 2 +- .../next/Library/2022-08-30-12-32-00.gh-issue-96415.6W7ORH.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2022-08-30-12-32-00.gh-issue-96415.6W7ORH.rst diff --git a/Lib/types.py b/Lib/types.py index 2e73fbc4501..f8353126cb5 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 00000000000..0c93abf6dfc --- /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.