What is bytes code in python?🤔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is bytes code in python?🤔

27th Nov 2018, 1:55 PM
Programmer Raja
Programmer Raja - avatar
5 Answers
+ 4
This is also not just unique to Python, this is how codes are executed.
27th Nov 2018, 2:16 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Byte code is what your python program gets converted to, before it's run by the PVM
27th Nov 2018, 2:00 PM
Dlite
Dlite - avatar
+ 2
As Prometheus pointed out, this is not unique to Python. Your source is compiled into this intermediate “byte” code. It is not directly executable by any computer. Instead, a run-time Python virtual machine reads the byte code and executes what it indicates should be done. In theory (and only in theory) it should be possible to run the byte code assembled on a Linux computer on an Android phone if the phone has a PVM. The reason this does not work in the real world is because eventually operating system functions or I/O functions get called and Linux and Android will handle things a bit differently.
28th Nov 2018, 3:08 AM
Gary Duck
Gary Duck - avatar
+ 2
To see the bytecode you can import the dis module https://code.sololearn.com/cPu9bzYPHLHU/?ref=app
28th Nov 2018, 3:10 AM
David Ashton
David Ashton - avatar
0
Хвхы тупые пендосы
28th Nov 2018, 12:01 PM
Liora
Liora - avatar