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

Method getxattr

Lib/test/test_os/test_os.py:3823–3825  ·  view source on GitHub ↗
(path, *args)

Source from the content-addressed store, hash-verified

3821
3822 def test_fds(self):
3823 def getxattr(path, *args):
3824 with open(path, "rb") as fp:
3825 return os.getxattr(fp.fileno(), *args)
3826 def setxattr(path, *args):
3827 with open(path, "wb", 0) as fp:
3828 os.setxattr(fp.fileno(), *args)

Callers 7

_copyxattrFunction · 0.80
_xattrsMethod · 0.80
test_copyxattrMethod · 0.80
test_copy2_xattrMethod · 0.80

Calls 2

openFunction · 0.50
filenoMethod · 0.45

Tested by

no test coverage detected