Unix-head needs to Windows-ize his Python script (II)

Dave Angel davea at ieee.org
Sat Oct 23 07:18:28 EDT 2010



On 2:59 PM, Lawrence D'Oliveiro wrote:
> In message<mailman.128.1287758336.2218.python-list at python.org>, Tim Golden
> wrote:
>
>> If you were to rename the .py to a .pyw it would run without a console
>> window showing up.
> Presumably the “w” stands for “window”. Wouldn’t it be less confusing if it
> was the other way round?
>
Presumably the original pythonw.exe was called that because it's marked 
as a windows-app. In win-speak, that means it has a gui. Applications 
that are not so-marked are console-apps, and get a console created if 
they weren't already started from one. That's where stdin/stdout/stderr 
get pointed.

DaveA




More information about the Python-list mailing list