[New-bugs-announce] [issue44747] Reduce usage of sys._getframe at typing module

Yurii Karabas report at bugs.python.org
Tue Jul 27 05:04:49 EDT 2021


New submission from Yurii Karabas <1998uriyyo at gmail.com>:

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.

----------
components: Library (Lib)
messages: 398286
nosy: uriyyo
priority: normal
severity: normal
status: open
title: Reduce usage of sys._getframe at typing module
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44747>
_______________________________________


More information about the New-bugs-announce mailing list