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 Jim.Jewett
Recipients Jim.Jewett, The Compiler, ezio.melotti, martin.panter, mbussonn, ncoghlan, njs, serhiy.storchaka, takluyver, terry.reedy
Date 2015-08-20.18:06:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440094015.23.0.793488229301.issue24294@psf.upfronthosting.co.za>
In-reply-to
Content
On windows, when python is started from the command line without a GUI, os.isatty(sys.stdin) raises an error, but os.isatty(sys.stdin.fileno()) returns true.  

Within IDLE, os.isatty(sys.stdin.fileno()) also raises an error, but os.isatty(0), os.isatty(1), and os.isatty(2) all return true.

I'm not sure exactly when you want which warning to show, let alone whether the above tests are relevant, but I'm happy to run some tests if you can tell me what you're looking for.
History
Date User Action Args
2015-08-20 18:06:55Jim.Jewettsetrecipients: + Jim.Jewett, terry.reedy, ncoghlan, ezio.melotti, njs, takluyver, martin.panter, serhiy.storchaka, The Compiler, mbussonn
2015-08-20 18:06:55Jim.Jewettsetmessageid: <1440094015.23.0.793488229301.issue24294@psf.upfronthosting.co.za>
2015-08-20 18:06:55Jim.Jewettlinkissue24294 messages
2015-08-20 18:06:55Jim.Jewettcreate