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

Method fileno

Lib/bz2.py:134–137  ·  view source on GitHub ↗

Return the file descriptor for the underlying file.

(self)

Source from the content-addressed store, hash-verified

132 return 'wb' if self._mode == _MODE_WRITE else 'rb'
133
134 def fileno(self):
135 """Return the file descriptor for the underlying file."""
136 self._check_not_closed()
137 return self._fp.fileno()
138
139 def seekable(self):
140 """Return whether the file supports seeking."""

Callers 1

testFilenoMethod · 0.95

Calls 1

_check_not_closedMethod · 0.80

Tested by 1

testFilenoMethod · 0.76