homepage

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 vstinner
Recipients fabioz, pitrou, vstinner
Date 2008年12月28日.16:04:50
SpamBayes Score 2.0172582e-05
Marked as misclassified No
Message-id <1230480292.83.0.263008090393.issue4705@psf.upfronthosting.co.za>
In-reply-to
Content
>> Should we also change stdin?
> I don't know, but "python -h" only talks about stderr/stdout.
The manpage of Python2 is clear:
 -u Force stdin, stdout and stderr to be totally unbuffered.
stdin is also unbuffered.
> It seems the "name" field of the TextIOWrapper object isn't 
> set in create_stdio()
It used only used for buffered output. Without the patch, 
sys.stdout.name == sys.stdout.buffer.name == '1' :-/
New patch:
 - use create_stdio() to create unbuffered sys.stdin
 - rename Py_UnbufferedStdoutFlag to Py_UnbufferedStdioFlag
 - replace "Py_UnbufferedStdioFlag++;" by "Py_UnbufferedStdioFlag = 
1;"
 - change create_stdio(): (...)
Note: there is no test for unbuffered input because I don't know how 
to test this (even by manual tests) :-p
History
Date User Action Args
2008年12月28日 16:04:53vstinnersetrecipients: + vstinner, pitrou, fabioz
2008年12月28日 16:04:52vstinnersetmessageid: <1230480292.83.0.263008090393.issue4705@psf.upfronthosting.co.za>
2008年12月28日 16:04:52vstinnerlinkissue4705 messages
2008年12月28日 16:04:52vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /