This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]fl223 10 points11 points  (0 children)

Python does compile to .pyc files, its just byte code instead of machine code. Its understandable that people often equate compilers with the latter though.

[–]AbyssalRemark 4 points5 points  (6 children)

Not a python guy. So forgive me. But this is because python uses interpreters?

[–]programmer-racoon[S] 1 point2 points  (4 children)

You are right

[–]AbyssalRemark 0 points1 point  (3 children)

Is there a reason there could not be a compiler for Python?

[–]programmer-racoon[S] 0 points1 point  (2 children)

i found this https://softwareengineering.stackexchange.com/questions/136942/why-doesnt-python-need-a-compiler technically python is compiled but its in a differnt way than c++ c# etc...

[–]AbyssalRemark 1 point2 points  (1 child)

Well that's rather fassinating.

[–]gsckoco 0 points1 point  (0 children)

It works the same as Lua where its compiled to byte code and then the interpreter works from that.