3 ms·
I don't think so; https://docs.python.org/3/library/dis.html#python-bytecode-instructions https://docs.python.org/3/library/dis.html#python-bytecode-i... was th
by abecedarius 12y ago
I don't think so; https://docs.python.org/3/library/dis.html#python-bytecode-instructions https://docs.python.org/3/library/dis.html#python-bytecode-i... was the closest I found when I was writing a compiler for a subset of Python, and that doc was a little sketchy and out of date. I ended up consulting the CPython source a lot and reading some helpful blog series:
http://docs.python.org/devguide/compiler.html http://docs.python.org/devguide/compiler.html
http://akaptur.github.io/blog/categories/python-internals/ http://akaptur.github.io/blog/categories/python-internals/
http://eli.thegreenplace.net/category/programming/python/python-internals/ http://eli.thegreenplace.net/category/programming/python/pyt...
http://tech.blog.aknin.name/category/my-projects/pythons-innards/ http://tech.blog.aknin.name/category/my-projects/pythons-inn...
http://www.matusiak.eu/numerodix/blog/category/python-internals/ http://www.matusiak.eu/numerodix/blog/category/python-intern...
Also Python 2 comes with a 'compiler' module which reimplements the built-in compiler in Python. (The real one is in C. The Python one was dropped from Python 3.)