New submission from Shreyan Avigyan <shreyan.avig...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44148>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to