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 | christian.heimes |
|---|---|
| Recipients | amaury.forgeotdarc, christian.heimes |
| Date | 2007年11月10日.14:44:45 |
| SpamBayes Score | 0.027532348 |
| Marked as misclassified | No |
| Message-id | <1194705886.17.0.746002796652.issue1415@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Congratulations Amaury and welcome on board! :) I like to get your opinion on the problem. So far I've figured out that Windows doesn't create the std streams for Windows WinMain() programs. As first step towards the solution I like to separate the close check from the fd. Currently Module/_fileio.c:file_close() sets the fd to a negative value and open fails immediately with a negative fd. I want to add a closed flag to the struct and move the fd < 0 check to the read and write operations. That's going to fix stdin and stdout for non console based programs on Windows. For stderr I've to think about a better solution to avoid an infinite loop (stderr.write() -> exception -> stderr.write() ...). Maybe I could add some more methods to the dumb writer to make it more file like and use it? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年11月10日 14:44:46 | christian.heimes | set | spambayes_score: 0.0275323 -> 0.027532348 recipients: + christian.heimes, amaury.forgeotdarc |
| 2007年11月10日 14:44:46 | christian.heimes | set | spambayes_score: 0.0275323 -> 0.0275323 messageid: <1194705886.17.0.746002796652.issue1415@psf.upfronthosting.co.za> |
| 2007年11月10日 14:44:46 | christian.heimes | link | issue1415 messages |
| 2007年11月10日 14:44:45 | christian.heimes | create | |