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

Function S_ISSOCK

Lib/stat.py:74–76  ·  view source on GitHub ↗

Return True if mode is from a socket.

(mode)

Source from the content-addressed store, hash-verified

72 return S_IFMT(mode) == S_IFLNK
73
74def S_ISSOCK(mode):
75 """Return True if mode is from a socket."""
76 return S_IFMT(mode) == S_IFSOCK
77
78def S_ISDOOR(mode):
79 """Return True if mode is from a door."""

Callers 1

is_socketMethod · 0.90

Calls 1

S_IFMTFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…