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

Method fileno

Lib/test/test_capi/test_file.py:152–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 def __init__(self, fd):
151 self.fd = fd
152 def fileno(self):
153 return self.fd
154
155 # file descriptor must be positive
156 with self.assertRaises(ValueError):

Callers 5

pyobject_dumpMethod · 0.45
test_pyfile_fromfdMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected