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

Function open_binary

Lib/importlib/resources/_functional.py:11–13  ·  view source on GitHub ↗

Open for binary reading the *resource* within *package*.

(anchor, *path_names)

Source from the content-addressed store, hash-verified

9
10
11def open_binary(anchor, *path_names):
12 """Open for binary reading the *resource* within *package*."""
13 return _get_resource(anchor, path_names).open('rb')
14
15
16def open_text(anchor, *path_names, encoding=_MISSING, errors='strict'):

Callers

nothing calls this directly

Calls 2

_get_resourceFunction · 0.85
openMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…