mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-91248: Optimize PyFrame_GetVar() (#99252)
PyFrame_GetVar() no longer creates a temporary dictionary to get a variable.
This commit is contained in:
parent
57be545959
commit
6788303f5c
3 changed files with 146 additions and 97 deletions
|
@ -87,6 +87,8 @@ See also :ref:`Reflection <reflection>`.
|
|||
* Raise :exc:`NameError` and return ``NULL`` if the variable does not exist.
|
||||
* Raise an exception and return ``NULL`` on error.
|
||||
|
||||
*name* type must be a :class:`str`.
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue