[issue14522] Avoid using DuplicateHandle() on sockets in multiprocessing.connection

sbt report at bugs.python.org
Sat Apr 7 22:12:19 CEST 2012


sbt <shibturn at gmail.com> added the comment:

> Is there a reason the patch changes close() to win32.CloseHandle()?

This is a Windows only code path so close() is just an alias for win32.CloseHandle().  It allow removal of the lines 

    # Late import because of circular import
    from multiprocessing.forking import duplicate, close

----------

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


More information about the Python-bugs-list mailing list