For StreamRequetHandler's rfile attribute, it will block when the read readline readlines reach the end.
It would be nice to add non-blocking read because the seek() is unavailable for rfile. and there is no other way to detect if it is ended. When the stream is empty and waiting for new input, then it will return None type. This would be a nice feature. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/Z3ER3MN3LDIUMEM4YYMT5WGN4CZHEEJS/ Code of Conduct: http://python.org/psf/codeofconduct/