1. 9
  1. 1

    Fantastic post, thanks for sharing. I’ve been meaning to write a Python bytecode evaluator or a compiler that emits Python bytecode for a while. Looks like a good intro.

    1. 2

      I’ve given a couple talks at Python conferences going over the basics of Python bytecode and how it’s executed, and these two are the general resources I always recommend for deeper dives/examples:

      1. 1

        or a compiler that emits Python bytecode

        Is that just a learning exercise, or is there some practical use for it that you have in mind?

        1. 1

          Just for fun/learning.