Python Forum
"bytecode compiler" in docs means what?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"bytecode compiler" in docs means what?
#1
Hello, first post. I'm a CS instructor and prepping a lecture on compiling v interpreting.

My question is about the use of the term "bytecode compiler". In https://docs.python.org/3/glossary.html the docs say this about interpreted.

Python is an interpreted language, as opposed to a compiled one, though the distinction can be blurry because of the presence of the bytecode compiler. This means that source files can be run directly without explicitly creating an executable which is then run.

I think"bytecode compiler" means bytecode-to-machine-code because of the context, and because the word before "compiler" is usually the thing being compiled. But every way I have asked Google AI for clarification, it has come back saying that "bytecode compiler" refers to source-code-to-bytecode compilation.

Can someone provide a definitive answer? Thank you in advance.
Reply
#2
Bytecode compiler means source-code-to-bytecode compilation in this context. The term "compiler" can be applied to any translator of one language to a lower level language, which is the case here. It does not necessarily means translation to machine code.
« We can solve any problem by introducing an extra level of indirection »
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Online Compiler alexmaxwell1 2 3,579 Sep-03-2023, 05:54 PM
Last Post: Skaperen
  where is documentation for stat result attributes in PDF docs? Skaperen 5 2,000 May-18-2023, 07:24 PM
Last Post: Skaperen
  frozenset.copy() docs wrong Skaperen 8 5,140 Apr-08-2020, 12:56 AM
Last Post: Skaperen
  Best compiler for windows or mac linux Shadowdevelopment 0 2,078 Jan-21-2020, 02:25 AM
Last Post: Shadowdevelopment
  looking up docs for open file methods Skaperen 3 3,274 Nov-10-2019, 01:08 AM
Last Post: Skaperen
  ChocoPy - A Subset of Python3 used for teaching compiler courses nilamo 0 2,718 Sep-13-2019, 06:49 PM
Last Post: nilamo
  Multi-Language compiler/code Generator holyghost 1 3,068 Feb-07-2019, 11:07 AM
Last Post: Larz60+
  Operator Precedence Direction in Docs blitz4 3 4,089 Mar-11-2018, 06:15 AM
Last Post: wavic
  Transcrypt 3.6.56 Python to Javascript compiler now supports embedded JSX. jacques_de_hooge 1 3,318 Dec-01-2017, 05:30 PM
Last Post: nilamo
  Transcrypt Python to JavaScript compiler now supports async/await jacques_de_hooge 4 5,605 Aug-24-2017, 04:21 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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