Skip to content

locals(): return a dict snapshot — the raw frame object is not a Python mapping ('x' in locals() raised TypeError)#2735

Merged
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:locals-dict
Jun 12, 2026
Merged

locals(): return a dict snapshot — the raw frame object is not a Python mapping ('x' in locals() raised TypeError)#2735
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:locals-dict

Conversation

@fgallaire

Copy link
Copy Markdown
Contributor
>>> 'x' in locals()
TypeError: argument of type 'Probe' is not a container or iterable  # before
>>> 'x' in locals()
True                                                                # after

…on mapping ('x' in locals() raised TypeError)
@PierreQuentel PierreQuentel merged commit ff817b9 into brython-dev:master Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants