Author snaphat
Recipients snaphat
Date 2014-10-19.19:00:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413745258.02.0.518044907787.issue22673@psf.upfronthosting.co.za>
In-reply-to
Content
If I execute the following code, the file descriptor for CONOUT$ has a fileno != 1. With CONIN$ the fileno != 0. Similar code in another language such as perl produces the desired results. 

sys.stdout.close();
sys.stdout = open("CONOUT$", "w");
sys.stderr.write(str(sys.stdout.fileno()));

I believe it has to do with the fact that stdout is an object in python and in perl or c, you are operating directly on the stream ala freopen() or the equivalent.
History
Date User Action Args
2014-10-19 19:00:58snaphatsetrecipients: + snaphat
2014-10-19 19:00:58snaphatsetmessageid: <1413745258.02.0.518044907787.issue22673@psf.upfronthosting.co.za>
2014-10-19 19:00:57snaphatlinkissue22673 messages
2014-10-19 19:00:57snaphatcreate