I am new to python. I am using ubuntu for software development using python. Here python extension in ubuntu.
ubuntu :
.py
.pyc
Windows:
?
Mac :
?
and also please explain the extensions.
I am new to python. I am using ubuntu for software development using python. Here python extension in ubuntu.
ubuntu :
.py
.pyc
Windows:
?
Mac :
?
and also please explain the extensions.
They are the same. In both windows and mac, you have .py
files and compiled .pyc
files. They are the same on all operating systems.
You might also occasionally meet .pyo
, which is the same as a .pyc
but it has been optimized. What that means really is that all assert
statements are removed (used in testing software).
However, .pyd
is specifically for windows. You can learn more about it from here.
There is also
.pyw
forpythonw
programs on Windows - these do not generate a Windows console
-- From cdarke