Josh Rosenberg added the comment:

For source reference, the behavior for this case is to just copy out the file 
descriptor and stick it in a new socket object ( 
https://hg.python.org/cpython/file/3.5/Modules/socketmodule.c#l4289 ); no work 
is being done to somehow collaboratively manage the file descriptor to ensure 
it remains alive for the life of the socket object you're creating.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26703>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to