From d5e701991f2e3ba0d2cc298be03cca91d03a25e1 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 30 Aug 2022 12:32:20 +0300 Subject: [PATCH] gh-96415: Remove `types._cell_factory` from a module namespace --- 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 2e73fbc45013372..f8353126cb527c0 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -60,7 +60,7 @@ def _m(self): pass 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 000000000000000..0c93abf6dfcf161 --- /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.