Page 1 of 1

AttributeError: 'StreamReader' object has no attribute 'readinto'

Posted: Sun Dec 01, 2019 10:42 am
by jedie
Seems that uasyncio.StreamReader has no readinto() method. (microPython v1.11 on ESP8266)

Any work-a-round?!?

Re: AttributeError: 'StreamReader' object has no attribute 'readinto'

Posted: Sun Dec 01, 2019 10:52 am
by jimmo
Not at the moment, but you might be able to add it yourself?

FYI, there's a new version of uasyncio that will hopefully be merged soon but you can see it at https://github.com/micropython/micropython/pull/5332

Re: AttributeError: 'StreamReader' object has no attribute 'readinto'

Posted: Sun Dec 01, 2019 11:07 am
by pythoncoder
The fast_io version in this repo has this method.

Re: AttributeError: 'StreamReader' object has no attribute 'readinto'

Posted: Sun Dec 01, 2019 4:30 pm
by jedie
jimmo wrote:
Sun Dec 01, 2019 10:52 am
Not at the moment, but you might be able to add it yourself?
I have no idea to implement this.
jimmo wrote:
Sun Dec 01, 2019 10:52 am
FYI, there's a new version of uasyncio that will hopefully be merged soon but you can see it at https://github.com/micropython/micropython/pull/5332
I have already seen the pull request. I hope it will be merged and released soon.