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
import time
class A:
CONST = 12
def m(self, val=CONST):
print(val)
a = A()
while True:
a.m()
time.sleep(1)
cmd: jurigged script.py, then try modifying the method.
output:
12
12
12
Traceback (most recent call last):
File "/opt/venv/lib/python3.9/site-packages/jurigged/codetools.py", line 493, in _process_child_correspondence
orig.apply_correspondence(
File "/opt/venv/lib/python3.9/site-packages/jurigged/codetools.py", line 704, in apply_correspondence
new_obj = self.reevaluate(corr.new.node, glb)
File "/opt/venv/lib/python3.9/site-packages/jurigged/codetools.py", line 790, in reevaluate
exec(code, glb, lcl)
File "/app/script.py", line 7, in <adjust>
def m(self, val=CONST):
NameError: name 'CONST' is not defined
The text was updated successfully, but these errors were encountered:
environment
image:
docker.io/library/python:3.9.6
docker:
Docker version 24.0.7, build afdd53b
(native Linux, Kubuntu)jurigged: 0.5.7
script.py:
cmd:
jurigged script.py
, then try modifying the method.output:
The text was updated successfully, but these errors were encountered: