+ 8

what is the difference between python before compile and after that?

its add faster vice versa ? please explain to me

7th Jul 2018, 10:20 AM
Muhammad Aviv Burhanudin
Muhammad Aviv Burhanudin - avatar
5 Respostas
+ 3
if you mean difference between .py and .pyc its that .pyc are pseudo-precompilated python script and they are more fast to load (but not more fast to execute)
7th Jul 2018, 10:32 AM
KrOW
KrOW - avatar
+ 8
thanks KrOW i understand now
7th Jul 2018, 10:36 AM
Muhammad Aviv Burhanudin
Muhammad Aviv Burhanudin - avatar
+ 2
Silie 👍👍👍
7th Jul 2018, 10:37 AM
KrOW
KrOW - avatar
+ 1
?
7th Jul 2018, 10:32 AM
Cat Sauce
Cat Sauce - avatar
0
python automatically store .pyc after compiling first time for reuse further . if your script(main.py) is importing your other module(ie man.py) you can check after first time execution of your script, you can check that man.pyc will be present along with man.py it is python's virtue that it optimize the loading time for next time . as Krow explained .
17th Jul 2018, 2:26 PM
umesh kumar Kumawat
umesh kumar Kumawat - avatar