summaryrefslogtreecommitdiffstatshomepage
path: root/py/sequence.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-07 01:39:38 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-07 02:17:14 +0300
commita592104acdc56fa6511311ecfe6d4de63415d5ab (patch)
tree25e62b10dd383413597340e6dfa801bf9a505ce3 /py/sequence.c
parent93afa230a42592023ba39951a48109d098f03bbe (diff)
downloadmicropython-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/sequence.c')
0 files changed, 0 insertions, 0 deletions