Sometimes when debugging monty it'd be useful to easily see the bytecode compiled from a particular Python source.
I haven't seen an obvious way to do that; it'd be nice to have one. Some ideas:
- We could have a minimal subset of the
dis module
- We could have a
--dump-bytecode cli flag or similar to just use it as a debugging tool. Or maybe a separate binary so it doesn't impact the main distribution.
Would be interested to hear which (if any) make sense.
Sometimes when debugging monty it'd be useful to easily see the bytecode compiled from a particular Python source.
I haven't seen an obvious way to do that; it'd be nice to have one. Some ideas:
dismodule--dump-bytecodecli flag or similar to just use it as a debugging tool. Or maybe a separate binary so it doesn't impact the main distribution.Would be interested to hear which (if any) make sense.