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)[[__a for __b in [1]]] =1
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in __a
TypeError: 'int' object does not support item assignment
On 3.11:
>>> class__a:
... __a = (1)[[__a for __b in [1]]] =1
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in __a
File "<stdin>", line 2, in <listcomp>
NameError: name '_a__a' is not defined. Did you mean: '_a__b'?
I think that means we're missing some name mangling, but haven't thought too deeply about this yet.
Actually this is just the class scoping change. It doesn't reproduce any more after #104528; looks like I forgot to merge that in before starting the fuzzer. Sorry for the noise.
Activity
JelleZijlstra commentedon May 18, 2023
cc @carljm
JelleZijlstra commentedon May 18, 2023
Actually this is just the class scoping change. It doesn't reproduce any more after #104528; looks like I forgot to merge that in before starting the fuzzer. Sorry for the noise.