aleph-vm
aleph-vm copied to clipboard
Running python with -OO breaks some packages
Describe the bug Some packages that are relies on docstrings for defining how to parse strings can't work with -OO options
To Reproduce
example.py
from pytezos.michelson.types import MichelsonType
from pytezos.michelson.parse import michelson_to_micheline
parser = MichelsonType.match(michelson_to_micheline('pair (string %_kind) (pair (string %_type) (bytes %_event))'))
python -OO example.py
Possible solution:
- Create multiple runtimes with and without -OO