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

Function create_package

Lib/test/test_importlib/resources/util.py:64–68  ·  view source on GitHub ↗
(file=None, path=None, is_package=True, contents=())

Source from the content-addressed store, hash-verified

62
63
64def create_package(file=None, path=None, is_package=True, contents=()):
65 return create_package_from_loader(
66 Reader(file=file, path=path, _contents=contents),
67 is_package,
68 )
69
70
71class CommonTestsBase(metaclass=abc.ABCMeta):

Callers 3

test_missing_pathMethod · 0.70
test_extant_pathMethod · 0.70
test_useless_loaderMethod · 0.70

Calls 2

ReaderClass · 0.70

Tested by 3

test_missing_pathMethod · 0.56
test_extant_pathMethod · 0.56
test_useless_loaderMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…