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

Method is_char_device

Lib/pathlib/__init__.py:922–929  ·  view source on GitHub ↗

Whether this path is a character device.

(self)

Source from the content-addressed store, hash-verified

920 return False
921
922 def is_char_device(self):
923 """
924 Whether this path is a character device.
925 """
926 try:
927 return S_ISCHR(self.stat().st_mode)
928 except (OSError, ValueError):
929 return False
930
931 def is_fifo(self):
932 """

Calls 2

statMethod · 0.95
S_ISCHRFunction · 0.90

Tested by 3