Python Forum
Is python an interpreted language or a compiled language?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is python an interpreted language or a compiled language?
#1
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?
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can Python be used as a macro language for excel, Word, etc.? CynthiaMoore 8 2,948 Sep-17-2022, 08:12 AM
Last Post: stevendaprano
  Python Has Major Problems as Language Dave 13 3,585 May-20-2022, 10:12 AM
Last Post: stevendaprano
  TIOBE Index for October 2021 - Python programming language number 1! Yoriz 1 1,508 Oct-07-2021, 11:35 PM
Last Post: Larz60+
  a new language based on python Skaperen 0 1,626 Nov-04-2020, 01:54 AM
Last Post: Skaperen
  what programming language to learn other than python in real mass-production product? Kai 1 2,083 Apr-12-2020, 04:40 AM
Last Post: Larz60+
  Chinese coding language ‘Mulan’ found to be Python fork buran 0 1,697 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 2,620 Jun-04-2019, 07:56 PM
Last Post: snippsat
  Multi-Language compiler/code Generator holyghost 1 2,465 Feb-07-2019, 11:07 AM
Last Post: Larz60+
  Coconut - A Functional Language Which Compiles to Python nilamo 2 2,693 Jan-04-2019, 12:01 AM
Last Post: micseydel
  Python interprete or compiled ? medaghroud 1 2,263 Dec-22-2018, 08:42 AM
Last Post: buran

Forum Jump:

User Panel Messages

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