STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue3321>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to