Python Forum
bytecodes and virtual machine?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bytecodes and virtual machine?
#1
I thought I saw a reference somewhere that, like Java, Python (CPython?) "compiles" to bytecodes which are executed by a virtual machine.

Is that true? Is there a document that explains how Python actually works "under the hood"?
Reply
#2
It is true.
https://opensource.com/article/18/4/intr...n-bytecode

Just try it by yourself.

The difference is, that Java is static typed language and Python is dynamic typed.
Java has a JIT compiler. The standard implementation (CPython) has not a JIT compiler.
But there happens other optimization of bytecode.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to learn Python compilation and virtual machine IJB 3 2,614 Feb-14-2020, 02:59 PM
Last Post: IJB

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020