Message80199
| Author |
benjamin.peterson |
| Recipients |
benjamin.peterson, gvanrossum, kawai, pitrou, vstinner |
| Date |
2009年01月19日.18:02:06 |
| SpamBayes Score |
1.6380838e-07 |
| Marked as misclassified |
No |
| Message-id |
<1afaf6160901191002k7c82662cxc3e6e9d848a3097@mail.gmail.com> |
| In-reply-to |
<1232387982.19.0.218689047476.issue4996@psf.upfronthosting.co.za> |
| Content |
On Mon, Jan 19, 2009 at 11:59 AM, STINNER Victor <report@bugs.python.org> wrote:
>
> STINNER Victor <victor.stinner@haypocalc.com> added the comment:
>
> Short example to reproduce the problem:
> ---
> import io, os
> fd = os.open("/etc/issue", os.O_RDONLY)
> raw = open(fd, "rb", buffering=0)
> text = io.TextIOWrapper(raw, line_buffering=False)
> print(text.read(1))
You can only use TextIOWrapper over a buffered stream, so this example
is invalid anyway. |
|