diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-07 01:39:38 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-07 02:17:14 +0300 |
commit | a592104acdc56fa6511311ecfe6d4de63415d5ab (patch) | |
tree | 25e62b10dd383413597340e6dfa801bf9a505ce3 /py/objproperty.c | |
parent | 93afa230a42592023ba39951a48109d098f03bbe (diff) | |
download | micropython-a592104acdc56fa6511311ecfe6d4de63415d5ab.tar.gz micropython-a592104acdc56fa6511311ecfe6d4de63415d5ab.zip |
stream: Add compliant handling of non-blocking read()/write().
In case of empty non-blocking read()/write(), both return None. read()
cannot return 0, as that means EOF, so returns another value, and then
write() just follows. This is still pretty unexpected, and typical
"if not len:" check would treat this as EOF. Well, non-blocking files
require special handling!
This also kind of makes it depending on POSIX, but well, anything else
should emulate POSIX anyway ;-).
Diffstat (limited to 'py/objproperty.c')
0 files changed, 0 insertions, 0 deletions