4 ms·
Isn't Python to C using CPython missing? Edit: Or I guess technically python byte code. [1] [1] http://effbot.org/zone/python-compile.htm http://effbot.org/zo
by AdamM12 8y ago
Isn't Python to C using CPython missing?
Edit: Or I guess technically python byte code. [1]
[1] http://effbot.org/zone/python-compile.htm http://effbot.org/zone/python-compile.htm
- chrisseaton 8y ago> Isn't Python to C using CPython missing? Python doesn't compile Python to C, non-technically or otherwise. Where did you get that impression? I presume they don't include internal IRs like Python bytecode, as it's not any kind of shared or standardised format. Otherwise you'd be including tons of different compiler IRs.
- AdamM12 8y agoI thought it maps your code to the base Py_Object like how writing an extension works? Idk only done a little bit of that and need to dive into the process more. On my todo list so if you have some links that have a good explanation of this that would be great. Unfortunately was unable to take compilers in school so missed out on the conceptual aspect of the compilation process. edit: found the docs on python.org for the compiler [1] [1] https://devguide.python.org/compiler/ https://devguide.python.org/compiler/
- chrisseaton 8y agoYeah it doesn’t compile it into C though. You may be thinking of Cython, which compiles a language similar to Python, but not quite Python, into C using the Python C extension interface.