]> granicus.if.org Git - python/commit
Another refactoring. Changed 'socket' from being a factory function
authorGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 15:16:20 +0000 (15:16 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 15:16:20 +0000 (15:16 +0000)
commitc18993f84a965fb77cedd89a687beccafa9c496e
tree76b4c56a295ff0015adf1b705b6b295952a314a1
parent824574d3d4c4749e21c0d9b093f688934f38699a
Another refactoring.  Changed 'socket' from being a factory function
to being a new-style class, to be more similar to the socket class
in the _socket module; it is now the same as the _socketobject class.
Added __slots__.  Added docstrings, copied from the real socket class
where possible.

The _fileobject class is now also a new-style class with __slots__
(though without docstrings).  The mode, name, softspace, bufsize and
closed attributes are properly supported (closed as a property; name
as a class attributes; the softspace, mode and bufsize as slots).
Lib/socket.py