Message80198
| Author |
vstinner |
| Recipients |
benjamin.peterson, gvanrossum, kawai, pitrou, vstinner |
| Date |
2009年01月19日.17:59:40 |
| SpamBayes Score |
8.3819835e-08 |
| Marked as misclassified |
No |
| Message-id |
<1232387982.19.0.218689047476.issue4996@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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))
---
Traceback (most recent call last):
File "x.py", line 6, in <module>
print(text.read(1))
File "/home/SHARE/SVN/py3k/Lib/io.py", line 1739, in read
eof = not self._read_chunk()
File "/home/SHARE/SVN/py3k/Lib/io.py", line 1565, in _read_chunk
input_chunk = self.buffer.read1(self._CHUNK_SIZE)
AttributeError: 'FileIO' object has no attribute 'read1' |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年01月19日 17:59:42 | vstinner | set | recipients:
+ vstinner, gvanrossum, pitrou, benjamin.peterson, kawai |
| 2009年01月19日 17:59:42 | vstinner | set | messageid: <1232387982.19.0.218689047476.issue4996@psf.upfronthosting.co.za> |
| 2009年01月19日 17:59:41 | vstinner | link | issue4996 messages |
| 2009年01月19日 17:59:40 | vstinner | create |
|