Bug report
Bug description:
def f(self):
if x:
pass
self.x
with self.x:
from shutil import ExecError
This produces a LOAD_FAST for the first self.x when it should produce a LOAD_FAST_BORROW. The IMPORT_FROM/STORE_FAST ends up marking self as STORED_AS_LOCAL
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
This produces a
LOAD_FASTfor the firstself.xwhen it should produce aLOAD_FAST_BORROW. TheIMPORT_FROM/STORE_FASTends up markingselfasSTORED_AS_LOCALCPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs