Cool, thank you! Quick experimentation suggests that I don't need to worry about marking anything for garbage collection, correct? The next question is, how do I create a stream of byte codes that can be interpreted by CPython directly? I don't mean 'use the compile module', I mean writing my own byte array with bytes that CPython can directly interpret.
Thanks, Cem Karan On Oct 1, 2016, at 7:02 PM, Ben Finney <ben+pyt...@benfinney.id.au> wrote: > Cem Karan <cfkar...@gmail.com> writes: > >> Hi all, I've all of a sudden gotten interested in the CPython >> interpreter, and started trying to understand how it ingests and runs >> byte code. > > That sounds like fun! > >> Is there something similar to a manual dedicated to python byte code? > > The Python documentation for the ‘dis’ module shows not only how to use > that module for dis-assembly of Python byte code, but also a reference > for the byte code. > > 32.12. dis — Disassembler for Python bytecode > > <URL:https://docs.python.org/3/library/dis.html> > > -- > \ “Skepticism is the highest duty and blind faith the one | > `\ unpardonable sin.” —Thomas Henry Huxley, _Essays on | > _o__) Controversial Questions_, 1889 | > Ben Finney > > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list