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

Function _open_reader

Lib/pathlib/_os.py:168–176  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

166
167
168def _open_reader(obj):
169 cls = type(obj)
170 try:
171 open_reader = cls.__open_reader__
172 except AttributeError:
173 cls_name = cls.__name__
174 raise TypeError(f"{cls_name} can't be opened for reading") from None
175 else:
176 return open_reader(obj)
177
178
179def _open_writer(obj, mode):

Callers 1

vfsopenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…