[issue18329] for line in socket.makefile() speed degradation
Christian Heimes
report at bugs.python.org
Thu Jul 4 20:54:03 CEST 2013
Christian Heimes added the comment:
There is little bit more to it. A comment in the class' body describes the reason for SockteIO:
# One might wonder why not let FileIO do the job instead. There are two
# main reasons why FileIO is not adapted:
# - it wouldn't work under Windows (where you can't used read() and
# write() on a socket handle)
# - it wouldn't work with socket timeouts (FileIO would ignore the
# timeout and consider the socket non-blocking)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18329>
_______________________________________
More information about the Python-bugs-list
mailing list