Yes in the tagged release v1.12 StreamReader and StreamWriter are present, but I am talking about the latest Micropython commit where PR5332 (
https://github.com/micropython/micropython/pull/5332) was merged. And there is no StreamReader nor StreamWriter. Is it the intention to leave it out in the future releases?
Code: Select all
MicroPython v1.12-317-g688323307-dirty on 2020-03-29; ESP32 module (spiram) with ESP32
>>>help("modules")
__main__ gc uasyncio/lock urandom
_boot inisetup uasyncio/stream ure
_onewire logging ubinascii urequests
_thread machine ubluetooth uselect
_uasyncio math ucollections usocket
_webrepl micropython ucryptolib ussl
apa106 neopixel uctypes ustruct
btree network uerrno utime
builtins ntptime uhashlib utimeq
cmath onewire uhashlib uwebsocket
dht sys uheapq uzlib
ds18x20 uarray uio webrepl
esp uasyncio/__init__ ujson webrepl_setup
esp32 uasyncio/core uos websocket_helper
flashbdev uasyncio/event upip
framebuf uasyncio/funcs upip_utarfile
Plus any modules on the filesystem
>>>
Code: Select all
>>>import uasyncio
>>>for x in sorted(dir(uasyncio)):
>>> print(x)
CancelledError
Event
IOQueue
Lock
Loop
SingletonGenerator
Task
TaskQueue
TimeoutError
__class__
__file__
__getattr__
__name__
__path__
__version__
_attrs
core
create_task
event
funcs
gather
get_event_loop
lock
open_connection
run
run_until_complete
select
sleep
sleep_ms
start_server
stream
sys
ticks
ticks_add
ticks_diff
wait_for
Code: Select all
>>>import uasyncio.core
>>>for x in sorted(dir(uasyncio.core)):
>>> print(x)
CancelledError
IOQueue
Loop
SingletonGenerator
Task
TaskQueue
TimeoutError
__class__
__file__
__name__
_io_queue
_promote_to_task
_task_queue
create_task
get_event_loop
run
run_until_complete
select
sleep
sleep_ms
sys
ticks
ticks_add
ticks_diff
Code: Select all
>>>import uasyncio.event
>>>for x in sorted(dir(uasyncio.event)):
>>> print(x)
Event
__class__
__file__
__name__
core
Code: Select all
>>>import uasyncio.funcs
>>>for x in sorted(dir(uasyncio.funcs)):
>>> print(x)
__class__
__file__
__name__
core
gather
wait_for
Code: Select all
>>>import uasyncio.stream
>>>for x in sorted(dir(uasyncio.stream)):
>>> print(x)
Server
Stream
__class__
__file__
__name__
core
open_connection
start_server
stream_awrite
Code: Select all
>>>import uasyncio.lock
>>>for x in sorted(dir(uasyncio.lock)):
>>> print(x)
Lock
__class__
__file__
__name__
core