[New-bugs-announce] [issue44148] Raise a RuntimeError if frame is NULL in PyEval_GetGlobals

Shreyan Avigyan report at bugs.python.org
Sun May 16 11:34:49 EDT 2021


New submission from Shreyan Avigyan <shreyan.avigyan at gmail.com>:

Currently, PyEval_GetGlobals just returns NULL if frame is NULL while PyEval_GetLocals raises a runtime error and then returns NULL if frame is NULL. Raising a RuntimeError and then returning NULL from PyEval_GetGlobals if frame is NULL would be a better idea.

----------
components: C API
messages: 393745
nosy: shreyanavigyan
priority: normal
severity: normal
status: open
title: Raise a RuntimeError if frame is NULL in PyEval_GetGlobals
versions: Python 3.10, Python 3.11, Python 3.9

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


More information about the New-bugs-announce mailing list