mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
8 lines
147 B
Python
8 lines
147 B
Python
import marshal
|
|
orig = compile("1 + 1", "", 'eval')
|
|
|
|
dumped = marshal.dumps(orig)
|
|
loaded = marshal.loads(dumped)
|
|
|
|
assert eval(loaded) == eval(orig)
|