[issue28134] socket.socket(fileno=fd) does not work as documented

Christian Heimes report at bugs.python.org
Fri Sep 16 04:44:32 EDT 2016


Christian Heimes added the comment:

How about we fix the code and only document the limitations instead? :) After all it works fine on Windows and it is documented to work on all operating systems. Since it's a bug we can fix it in 3.5, too.

My patch implements a best-effort to get type, family and proto from the socket. It ignores any errors.

----------
keywords: +patch
Added file: http://bugs.python.org/file44687/sock_initobj_types.patch

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


More information about the Python-bugs-list mailing list