]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-86682: Adds sys._getframemodulename as an alternative to using _getframe (GH-99520)
authorSteve Dower <steve.dower@python.org>
Fri, 13 Jan 2023 11:31:06 +0000 (11:31 +0000)
committerGitHub <noreply@github.com>
Fri, 13 Jan 2023 11:31:06 +0000 (11:31 +0000)
commitb5d4347950399800c6703736d716f08761b29245
treebb838154108d6740e062cd5b3d0756fd1a4f2d89
parent94fc7706b7bc3d57cdd6d15bf8e8c4499ae53a69
gh-86682: Adds sys._getframemodulename as an alternative to using _getframe (GH-99520)

Also updates calls in collections, doctest, enum, and typing modules to use _getframemodulename first when available.
13 files changed:
Doc/library/sys.rst
Lib/_pydecimal.py
Lib/collections/__init__.py
Lib/doctest.py
Lib/enum.py
Lib/test/audit-tests.py
Lib/test/test_audit.py
Lib/test/test_sys.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-11-15-23-30-39.gh-issue-86682.gK9i1N.rst [new file with mode: 0644]
Objects/funcobject.c
Python/clinic/sysmodule.c.h
Python/sysmodule.c