aleph-vm icon indicating copy to clipboard operation
aleph-vm copied to clipboard

Running python with -OO breaks some packages

Open aliel opened this issue 3 years ago • 0 comments

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

aliel avatar Jun 10 '22 20:06 aliel