Skip to content

gh-162206: handle empty cells in inspect.getclosurevars - #162207

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-inspect-empty-cell
Open

tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-inspect-empty-cell

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

report empty closure cells in unbound instead of raising valueerror. keep bound cells in nonlocals.

Treat an empty nonlocal cell as unresolved and include its name in the unbound set instead of raising ValueError.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant