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

Method fileno

Lib/lzma.py:171–174  ·  view source on GitHub ↗

Return the file descriptor for the underlying file.

(self)

Source from the content-addressed store, hash-verified

169 return 'wb' if self._mode == _MODE_WRITE else 'rb'
170
171 def fileno(self):
172 """Return the file descriptor for the underlying file."""
173 self._check_not_closed()
174 return self._fp.fileno()
175
176 def seekable(self):
177 """Return whether the file supports seeking."""

Callers 1

test_filenoMethod · 0.95

Calls 1

_check_not_closedMethod · 0.80

Tested by 1

test_filenoMethod · 0.76