Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
Description
Code sample:
defouter(x): return [lambda: xforxinrange(x)] print([f() forfinouter(2)])On 3.11, this produces [1, 1] as expected.
But on current main, I get:
>>> [f() for f in outer(2)] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 2, in outer TypeError: 'cell' object cannot be interpreted as an integer Almost certainly due to PEP 709 / #101441, cc @carljm.
Linked PRs
sunmy2019 and carljm
Metadata
Metadata
Assignees
Labels
Projects
Status
Done