[issue949667] setblocking() method on file objects

Antoine Pitrou report at bugs.python.org
Thu Oct 24 14:09:32 CEST 2013


Antoine Pitrou added the comment:

> There is a real need of non-blocking operation, but I now think that
> adding a set_blocking() method is not the right solution. First, as
> said by Charles-Francois: O_NONBLOCK flag has no effect on regular
> files. Second, there is no portable way to declare a file as "non
> blocking": as said by Tim, it is complelty different on Windows (I/O
> Completion ports).

That it's not portable is actually a good reason to add a helper function
or method.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue949667>
_______________________________________


More information about the Python-bugs-list mailing list