Issue #1552: socket.socketpair() now returns regular socket.socket

objects supporting the whole socket API (rather than the "raw"
_socket.socket objects).
This commit is contained in:
Antoine Pitrou 2010-09-14 18:00:02 +00:00
parent 38615993b0
commit 9e0b864ac0
4 changed files with 47 additions and 0 deletions

View file

@ -364,6 +364,10 @@ The module :mod:`socket` exports the following constants and functions:
if defined on the platform; otherwise, the default is :const:`AF_INET`.
Availability: Unix.
.. versionchanged:: 3.2
The returned socket objects now support the whole socket API, rather
than a subset.
.. function:: fromfd(fd, family, type[, proto])