Skip to content

Conversation

@carljm
Copy link
Member

The fix for gh-104357 (#104368) is the cause of this crash. We can't promote a local to a cell before analyze_cells has run, or we'll fail to see that that local resolves a free var from a child scope. Instead we have to record the names that need promoting to cell in the scope due to being a cell in an inlined comprehension, and handle them within analyze_cells.

Fixesgh-104404.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PEP 709 segfault with nested comprehensions plus lambdas

3 participants

@carljm@JelleZijlstra@bedevere-bot