]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96415: Remove `types._cell_factory` from a module namespace (#96416)
authorNikita Sobolev <mail@sobolevn.me>
Fri, 7 Oct 2022 17:27:14 +0000 (20:27 +0300)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2022 17:27:14 +0000 (10:27 -0700)
Closes #96415

Lib/types.py
Misc/NEWS.d/next/Library/2022-08-30-12-32-00.gh-issue-96415.6W7ORH.rst [new file with mode: 0644]

index 2e73fbc45013372a8ced6d5c2ec41c4e1656d1b7..f8353126cb527c03a73ced2980a17e2edbf4dc03 100644 (file)
@@ -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 (file)
index 0000000..0c93abf
--- /dev/null
@@ -0,0 +1 @@
+Remove ``types._cell_factory`` from module namespace.