Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Is python an interpreted language or a compiled language?
So im a newbie in python and i learnt that python is an interpreted language since pvm interprets the byte code , but the byte code is instead formed after compiling the python source file. So is python both compiled and interpreted language?
I would say yes because the python language is translated into another language, the bytecode, and translating one language into another is what a compiler does, but the bytecode is interpreted by a virtual machine, so python is also interpreted.

The confusion comes from the fact that the word 'compiler' has often be used as a synonym for a program that translates a language into machine code directly executable by a CPU. Obviously python is not compiled in this restrictive sense in the way that C is for example.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  what programming language to learn other than python in real mass-production product? Kai 1 205 Apr-12-2020, 04:40 AM
Last Post: Larz60+
  Chinese coding language ‘Mulan’ found to be Python fork buran 0 255 Jan-22-2020, 04:30 AM
Last Post: buran
  What is the best book for in-depth Python for advanced other-language programmers? user118967 1 515 Jun-04-2019, 07:56 PM
Last Post: snippsat
  Multi-Language compiler/code Generator holyghost 1 702 Feb-07-2019, 11:07 AM
Last Post: Larz60+
  Coconut - A Functional Language Which Compiles to Python nilamo 2 662 Jan-04-2019, 12:01 AM
Last Post: micseydel
  Python interprete or compiled ? medaghroud 1 723 Dec-22-2018, 08:42 AM
Last Post: buran
  language feature i'd like to have Skaperen 5 1,327 Feb-05-2018, 06:41 AM
Last Post: Skaperen
  Some Guy Today Told Me Python Isn't A Real Programming Language digitalmatic7 11 4,917 Dec-01-2017, 12:58 PM
Last Post: I_love_py
  the fastest-growing major programming language dvs1 0 987 Sep-07-2017, 02:50 AM
Last Post: dvs1
  if i had written my own language Skaperen 9 3,089 Apr-03-2017, 07:40 AM
Last Post: zivoni

Forum Jump:

Users browsing this thread: 1 Guest(s)