You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> class __a:
... __a[1] = [(1) for __b in [] for __a in [lambda : __a]]
...
SystemError: compiler_lookup_arg(name='_a__a') with reftype=5 failed in __a; freevars of code <lambda>: ('_a__a',)
which is different from the original repro case, which segfaulted. I'll see if I can distill a useful test case out of it.
Activity
pythongh-104602: ensure all cellvars are known up front
gh-104602: ensure all cellvars are known up front (#104603)
JelleZijlstra commentedon May 19, 2023
Further fuzzing found this case that was also fixed by #104603:
This one failed as follows:
which is different from the original repro case, which segfaulted. I'll see if I can distill a useful test case out of it.
pythongh-104602: Add additional test for listcomp with lambda
gh-104602: Add additional test for listcomp with lambda (#104639)
Merge branch 'main' into gsallam/main