Message229690
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. |
|
Date |
User |
Action |
Args |
2014-10-19 19:00:58 | snaphat | set | recipients:
+ snaphat |
2014-10-19 19:00:58 | snaphat | set | messageid: <1413745258.02.0.518044907787.issue22673@psf.upfronthosting.co.za> |
2014-10-19 19:00:57 | snaphat | link | issue22673 messages |
2014-10-19 19:00:57 | snaphat | create | |
|