+ 6

Why don't we compile the program in Python before its execution?

6th Nov 2016, 9:05 AM
Komal K
Komal K - avatar
6 Answers
+ 6
Python is an interpreted language. As opposite to compiled languages, it doesn't need to be compiled into a binary file, the python interpreter reads your file and interprets it as it reads it. This is the case for most scripting languages, it results in an ease of use but generally lower performances. However, some python librairies use compiled code in order to improve performances, so if you use the right modules, you can have performances equivalent to compiled languages.
6th Nov 2016, 9:40 AM
Pierre Varlez
Pierre Varlez - avatar
+ 4
thanks Pierre Varlez
6th Nov 2016, 9:53 AM
Komal K
Komal K - avatar
+ 4
Because Python compiles scripts to bytecode (*.pyc) automatically before execution,
6th Nov 2016, 2:59 PM
Kirk Schafer
Kirk Schafer - avatar
+ 3
Does someone understand this question?
6th Nov 2016, 9:25 AM
Mihai Dancaescu
Mihai Dancaescu - avatar
+ 3
Thanks Charan
19th Nov 2017, 8:09 AM
Komal K
Komal K - avatar
+ 1
hey are you using any social media... if you are interested in making good friends... please give me your Facebook account name
19th Nov 2017, 1:43 PM
Raj Chhatrala
Raj Chhatrala - avatar