This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Refactor usage of sys._getframe at typing module
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: lukasz.langa, uriyyo
Priority: normal Keywords: patch

Created on 2021-07-27 09:04 by uriyyo, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27387 merged uriyyo, 2021-07-27 09:08
Messages (3)
msg398286 - (view) Author: Yurii Karabas (uriyyo) * (Python triager) Date: 2021-07-27 09:04
While I was working with `typing` I have notice that there are duplication of `_getframe` usage. While In scope of issue 44353 I introduced `typing._callee` function which allow to return module name of a caller function.

In scope of this issue we will reduce the usage of `_getframe` usage. It will be used only in one place, at `_callee` function.
msg398550 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-07-30 13:49
New changeset ea4673ed0757e9bfe8774e60cfae3313e9927b5f by Yurii Karabas in branch 'main':
bpo-44747: Refactor usage of sys._getframe at typing module (#27387)
https://github.com/python/cpython/commit/ea4673ed0757e9bfe8774e60cfae3313e9927b5f
msg398551 - (view) Author: Łukasz Langa (lukasz.langa) * (Python committer) Date: 2021-07-30 13:50
Thanks, Yurii! ✨ 🍰 ✨
History
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88910
2021-07-30 13:50:29lukasz.langasetstatus: open -> closed
resolution: fixed
messages: + msg398551

stage: patch review -> resolved
2021-07-30 13:49:33lukasz.langasetnosy: + lukasz.langa
messages: + msg398550
2021-07-28 09:15:30kjsettitle: Reduce usage of sys._getframe at typing module -> Refactor usage of sys._getframe at typing module
2021-07-27 09:08:03uriyyosetkeywords: + patch
stage: patch review
pull_requests: + pull_request25920
2021-07-27 09:04:49uriyyocreate