Message151933
| Author |
anacrolix |
| Recipients |
anacrolix |
| Date |
2012年01月25日.05:13:46 |
| SpamBayes Score |
3.1318115e-11 |
| Marked as misclassified |
No |
| Message-id |
<1327468428.38.0.416513768906.issue13858@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
_io._IOBase.readline doesn't seem to like _io.FileIO.read returning None, which occurs when it's unbuffered and nonblocking. (Modules/_io/fileio.c:745 in trunk). Can this be handled some other way?
$ python3.3
Python 3.3.0a0 (default:fb0f4fe8123e+, Jan 24 2012, 11:21:36)
[GCC 4.6.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, io
>>> r, w = os.pipe2(os.O_NONBLOCK)
>>> f = io.open(r, 'rb', 0)
>>> f.readline()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: read() should have returned a bytes object, not 'NoneType' |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年01月25日 05:13:48 | anacrolix | set | recipients:
+ anacrolix |
| 2012年01月25日 05:13:48 | anacrolix | set | messageid: <1327468428.38.0.416513768906.issue13858@psf.upfronthosting.co.za> |
| 2012年01月25日 05:13:47 | anacrolix | link | issue13858 messages |
| 2012年01月25日 05:13:46 | anacrolix | create |
|