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

Function _open_writer

Lib/pathlib/_os.py:179–187  ·  view source on GitHub ↗
(obj, mode)

Source from the content-addressed store, hash-verified

177
178
179def _open_writer(obj, mode):
180 cls = type(obj)
181 try:
182 open_writer = cls.__open_writer__
183 except AttributeError:
184 cls_name = cls.__name__
185 raise TypeError(f"{cls_name} can't be opened for writing") from None
186 else:
187 return open_writer(obj, mode)
188
189
190def _open_updater(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…