Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/multi_net/asyncio_tcp_readexactly.py.exp

11 lines
90 B
Plaintext
Raw Normal View History

extmod/uasyncio: Add StreamReader.readexactly(n) method. It raises on EOFError instead of an IncompleteReadError (which is what CPython does). But the latter is derived from EOFError so code compatible with MicroPython and CPython can be written by catching EOFError (eg see included test). Fixes issue #6156. Signed-off-by: Damien George <damien@micropython.org>
2020-07-25 23:05:41 +10:00
--- instance0 ---
server running
close
done
--- instance1 ---
b'ab'
b''
b'c'
EOFError
b''
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 93ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API