[issue3321] _multiprocessing.Connection() doesn't check handle

STINNER Victor report at bugs.python.org
Mon Jan 19 16:47:14 CET 2009


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Why don't you check the file descriptor directly in connection_new()? 
conn->handle is read only and so can't be changed before the call to 
poll(). So other methods will also be "protected" and the error will 
be raised earlier.

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


More information about the Python-bugs-list mailing list