summaryrefslogtreecommitdiff
path: root/Lib/socket.py
AgeCommit message (Collapse)AuthorLines
2003-05-29Give the Windows socket wrapper function default values for its 'family'Tim Peters-1/+1
and 'type' arguments. This improves x-platform compatibility (e.g., on Unix systems socket() already supported these default arguments). No need to do anything here for 2.3 -- it already fixed this glitch in a different way.
2002-12-23Backporting a small part of the socket.py changes from 2.3: get ridTim Peters-3/+0
of the socket wrapper __del__ method. It isn't needed, and it prevents cyclic structures containing socket objects (primarily on Windows, where the wrapper is used) from getting garbage-collected. People running ZEO tests in Zope under Windows are acutely aware of this, as the test driver prints an ever-growing gc.garbage list after each test.
2002-02-16The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.Martin v. Löwis-2/+2
Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
2001-12-18Move the helper class _closedsocket *into* the _socketobject class.Guido van Rossum-7/+6
This way, when a socket object is deleted after the socket module has already been zapped by module shutdown, we don't get annoying warnings about exceptions in __del__ methods.
2001-10-29Add 'sendall' to list of socket methods.Guido van Rossum-1/+1
2001-10-24SF patch #474590 -- RISC OS supportGuido van Rossum-1/+1
2001-08-18Inspired by Greg Stein's proposed simplification of the _closesocketGuido van Rossum-5/+1
class, I came up with an even simpler solution: raise the error in __getattr__().
2001-08-18When the socket is closed, don't just assign 0 to self._sock.Guido van Rossum-8/+18
This breaks software that excepts a socket.error but not an AttributeError.
2001-03-29Whitespace normalization.Tim Peters-1/+1
2001-03-22Add a wrapper function for ssl() on Windows. Inspired by SF patchGuido van Rossum-6/+11
# 409287, ssl fix when using _socketobject, by Robin Dunn. I took the opportunity to improve the way it deals with reload(socket) for the socket function as well.
2001-03-18add errorTab to __all__ on win*Skip Montanaro-0/+1
closes bug #406642
2001-03-02RISCOS changes by dschwertberger.Guido van Rossum-1/+2
2001-02-15bunch more __all__ listsSkip Montanaro-0/+5
also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
2001-01-15Whitespace normalization.Tim Peters-1/+1
2000-09-30Mention in the module's doc string that other functions of the socket APIMartin v. Löwis-1/+2
appear as methods on socket objects.
2000-09-19Support sizehint in _fileobject.readlines, as documented.Martin v. Löwis-1/+5
2000-09-15Before comparing os.uname() to BeOS check that os.uname actually exists:-)Jack Jansen-1/+1
2000-08-16updated occurences of fqdn algorithm (closes patch #101197)Peter Schneider-Kamp-1/+1
2000-08-16Revise the wrapper structure for the socket module:Fred Drake-0/+237
socket.py is used for all platforms, and it defines the additional classes and alternate socket() function for Windows and BeOS systems. The plat-*/socket.py files are no longer needed, since there is a shared socket.py. make_fqdn() is provided, but I decided to call it getfqdn() to be consistent with the other names in the socket module. Since it is really a "get" operation and does not create a new name, this is the right name to give it. Move the docstring here from the _socket module.