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.

Author vstinner
Recipients Mark.Shannon, ncoghlan, vstinner
Date 2022-03-22.14:47:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> In Python 3.10, it's possible to call PyFrame_FastToLocalsWithError() on a frame to get all variables as a dictionary.

In 2018, it was decided to *not* document this function: see bpo-19431.

In C, It is possible to call PyObject_GetAttrString(frame, "f_locals") to call indirectly _PyFrame_FastToLocalsWithError() and get the dictionary.
Date User Action Args
2022-03-22 14:47:09vstinnersetrecipients: + vstinner, ncoghlan, Mark.Shannon
2022-03-22 14:47:09vstinnersetmessageid: <>
2022-03-22 14:47:09vstinnerlinkissue47092 messages
2022-03-22 14:47:09vstinnercreate