[issue1378] fromfd() and dup() for _socket on WIndows

roudkerk report at bugs.python.org
Fri Nov 16 01:19:56 CET 2007


roudkerk added the comment:

Currently on Windows set_error() make use of a large array which maps 
socket error numbers to error messages.

This patch (against socketmodule.c from Python 2.6) removes that 
array and just lets PyErr_SetExcFromWindowsErr() 
generate the message by using the Win32 function FormatMessage().

It is orthogonal from the other patches discussed here.

Added file: http://bugs.python.org/file8761/set_error.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1378>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: set_error.patch
Type: application/octet-stream
Size: 3743 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071116/0f57af5f/attachment.obj 


More information about the Python-bugs-list mailing list