[issue35268] Windows asyncio reading continously stdin and stdout Stockfish

2018-11-19 Thread Steve Dower
Steve Dower added the comment: Are you awaiting those calls (and the write())? I can't tell at first glance whether you need to, but it seems like missing await there would cause your problem. -- ___ Python tracker

[issue35268] Windows asyncio reading continously stdin and stdout Stockfish

2018-11-17 Thread Cezary Wagner
Cezary Wagner added the comment: It looks like StremReader.read() not work and StremReader.readline() in Windows or I am not understand documentation. https://docs.python.org/3/library/asyncio-stream.html coroutine read(n=-1) Read up to n bytes. If n is not provided, or set to -1, read

[issue35268] Windows asyncio reading continously stdin and stdout Stockfish

2018-11-17 Thread Cezary Wagner
New submission from Cezary Wagner : I have some problems with asyncio on Windows - it block where it should go. Documentation shows that it should work: https://docs.python.org/3/library/asyncio-stream.html -> StreamReader should return something. See 1st example: import asyncio import sys