Skip to content

bytecode inspection #300

@davidhewitt

Description

@davidhewitt

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.

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