MCPcopy Index your code
hub / github.com/python/cpython / fromshare

Function fromshare

Lib/socket.py:601–607  ·  view source on GitHub ↗

fromshare(info) -> socket object Create a socket object from the bytes object returned by socket.share(pid).

(info)

Source from the content-addressed store, hash-verified

599
600if hasattr(_socket.socket, "share"):
601 def fromshare(info):
602 """ fromshare(info) -> socket object
603
604 Create a socket object from the bytes object returned by
605 socket.share(pid).
606 """
607 return socket(0, 0, 0, info)
608 __all__.append("fromshare")
609
610# Origin: https://gist.github.com/4325783, by Geert Jansen. Public domain.

Callers

nothing calls this directly

Calls 1

socketClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…