[Python-Dev] socket module changes (original) (raw)

Fred L. Drake, Jr. fdrake@beopen.com
Wed, 16 Aug 2000 00:51:34 -0400 (EDT)


This is a brief description of what I plan to check in to make the changes we've discussed regarding the socket module. I'll make the checkins tomorrow morning, allowing you all night to scream if you think that'll help. ;) Windows and BeOS both use a wrapper module, but these are essentially identical; the Windows variant has evolved a bit more, but that evolution is useful for BeOS as well, aside from the errorTab table (which gives messages for Windows-specific error numbers). I will be moving the sharable portions to a new module, _dupless_socket, which the new socket module will import on Windows and BeOS. (That name indicates why they use a wrapper in the first place!) The errorTab definition will be moved to the new socket module and will only be defined on Windows. The exist wrappers, plat-beos/socket.py and plat-win/socket.py, will be removed. socketmodule.c will only build as _socket, allowing much simplification of the conditional compilation at the top of the initialization function. The socket module will include the make_fqdn() implementation, adjusted to make local references to the socket module facilities it requires and to use string methods instead of using the string module. It is documented. The docstring in _socket will be moved to socket.py. If the screaming doesn't wake me, I'll check this in in the morning. The regression test isn't complaining! ;)

-Fred

-- Fred L. Drake, Jr. BeOpen PythonLabs Team Member