Multiple versions of Python coexisting in the same OS

Edward Diener eldiener at tropicsoft.invalid
Sun Jul 25 08:48:16 EDT 2010


On 7/25/2010 2:20 AM, Steven D'Aprano wrote:
> On Sat, 24 Jul 2010 22:03:48 -0700, Chris Rebert wrote:
>
>>> Are the .py and .pyc extensions the only ones which are associated with
>>> Python or are there others, for a normal Python installation in Windows
>>> ?
>>
>> There's also .pyw
>
> Also .pyo
>
> .py = Python source code, usually associated with command line Python
> .pyc = Python byte code
> .pyo = Python optimized byte code
> .pyw = is Windows only, and shouldn't open a console window.

Thanks ! I had forgotten about .pyo and .pyw under Windows.





More information about the Python-list mailing list