Message337941
| Author |
cykerway |
| Recipients |
cykerway |
| Date |
2019年03月14日.16:03:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1552579401.5.0.833701735318.issue36294@roundup.psfhosted.org> |
| In-reply-to |
| Content |
Document of [BufferedIOBase](https://docs.python.org/3/library/io.html#io.BufferedIOBase) says:
> ...unlike their RawIOBase counterparts, they will never return None.
But this example shows the above statement is not true:
import io
import os
import sys
os.set_blocking(sys.stdin.fileno(), False)
print(isinstance(sys.stdin.buffer, io.BufferedIOBase))
print(sys.stdin.buffer.read())
Output:
True
None |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2019年03月14日 16:03:21 | cykerway | set | recipients:
+ cykerway |
| 2019年03月14日 16:03:21 | cykerway | set | messageid: <1552579401.5.0.833701735318.issue36294@roundup.psfhosted.org> |
| 2019年03月14日 16:03:21 | cykerway | link | issue36294 messages |
| 2019年03月14日 16:03:21 | cykerway | create |
|