Skip to content

RuntimeError: code type passed for version 3.10.5 but we are running version None #97

@ImInTheICU

Description

@ImInTheICU
from xdis import marsh

script = """
a=10
b=20
print ('addition =',a+b)
"""
code = compile(script, "script", "exec")
x=marsh.dumps(code)
print(x)

exec(marsh.loads(x))

Returns

RuntimeError: code type passed for version 3.10.5 but we are running version None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions