PyDocs

Nav

Networking and Interprocess Communication

socket.dup

socket

method of socket (source) not WASI
  • socket.dup()
dup() -> socket object

Duplicate the socket. Return a new socket object connected to the same
system resource. The new socket is non-inheritable.
Changed in 3.4
  • 3.4: The socket is now non-inheritable.
0 Examples
No examples for socket/socket.dup.
See Also
No see-alsos for socket/socket.dup
0 Notes
No notes for socket.dup