python-goto
python-goto copied to clipboard
TypeError: "an integer is required" with Python 3.8
The following snippet produces "TypeError: an integer is required (got type bytes)" with Python 3.8.
Code snippet
from goto import with_goto
@with_goto
def main():
label .label_rst
Error trace
TypeError: an integer is required (got type bytes)
File "env/lib/python3.8/site-packages/goto.py", line 184, in with_goto
_patch_code(func_or_code.__code__),
File "env/lib/python3.8/site-packages/goto.py", line 175, in _patch_code
return _make_code(code, buf.tostring())
File "env/lib/python3.8/site-packages/goto.py", line 53, in _make_code
return types.CodeType(*args)
tell me what should i do
Wait until there is a fix for 3.8 or run with 3.6.
I got the same issue on Python 3.8.6
I fixed this in #34
I got the same error on Python 3.8.4