Used- import goto ,and- from goto import with_goto
no error but when trying to use "label .xxx", it's giving error- NameError: name 'label' is not defined
How is it actually done jupyter Notebook? Some examples please?
Tried-
@with_goto
def sss():
label .xxx
goto .xxx
with_goto(xxx)
with_goto(sss())
Error-
Input In [59], in <cell line: 12>()
10 if not i.isalpha() and not i.isdigit():return False
11 return True
12 @with_goto
---> 13 def inpID():
14 label .inthebeninging
15 reference_id = input('Enter Reference ID: ')
File C:\Python310\lib\site-packages\goto.py:184, in with_goto(func_or_code)
179 if isinstance(func_or_code, types.CodeType):
180 return _patch_code(func_or_code)
182 return functools.update_wrapper(
183 types.FunctionType(
--> 184 _patch_code(func_or_code.__code__),
185 func_or_code.__globals__,
186 func_or_code.__name__,
187 func_or_code.__defaults__,
188 func_or_code.__closure__,
189 ),
190 func_or_code
191 )
File C:\Python310\lib\site-packages\goto.py:175, in _patch_code(code)
171 raise SyntaxError('Jump out of too many nested blocks')
173 _inject_nop_sled(buf, pos, end)
--> 175 return _make_code(code, buf.tostring())
AttributeError: 'array.array' object has no attribute 'tostring'