This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients luizeldorado, ned.deily, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-08-14.15:19:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is normal, if obscure, behaviour. Pythonw starts without a console, and so stdout is not connected to anything. As a result, you can't print (or pprint).

You'll need to set sys.stdout to something or provide a file if you want to print output.

If someone wants to contribute a specialised sys.stdout implementation that can raise a more helpful error message in this case, that would be helpful. But as it's a breaking change it would only go into 3.10.
Date User Action Args
2020-08-14 15:19:08steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, ned.deily, zach.ware, luizeldorado
2020-08-14 15:19:08steve.dowersetmessageid: <>
2020-08-14 15:19:08steve.dowerlinkissue41546 messages
2020-08-14 15:19:08steve.dowercreate