From: Nikita Sobolev Date: Fri, 7 Oct 2022 17:27:14 +0000 (+0300) Subject: gh-96415: Remove `types._cell_factory` from a module namespace (#96416) X-Git-Tag: v3.12.0a1~192 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ba4875aec2031003d7ba90fd0f06f281bdecbf9;p=thirdparty%2FPython%2Fcpython.git gh-96415: Remove `types._cell_factory` from a module namespace (#96416) Closes #96415 --- diff --git a/Lib/types.py b/Lib/types.py index 2e73fbc45013..f8353126cb52 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 000000000000..0c93abf6dfcf --- /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.