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

Function _get_supported_file_loaders

Lib/importlib/_bootstrap_external.py:1559–1574  ·  view source on GitHub ↗

Returns a list of file-based module loaders. Each item is a tuple (loader, suffixes).

()

Source from the content-addressed store, hash-verified

1557
1558
1559def _get_supported_file_loaders():
1560 """Returns a list of file-based module loaders.
1561
1562 Each item is a tuple (loader, suffixes).
1563 """
1564 extension_loaders = []
1565 if hasattr(_imp, 'create_dynamic'):
1566 if sys.platform in {"ios", "tvos", "watchos"}:
1567 extension_loaders = [(AppleFrameworkLoader, [
1568 suffix.replace(".so", ".fwork")
1569 for suffix in _imp.extension_suffixes()
1570 ])]
1571 extension_loaders.append((ExtensionFileLoader, _imp.extension_suffixes()))
1572 source = SourceFileLoader, SOURCE_SUFFIXES
1573 bytecode = SourcelessFileLoader, BYTECODE_SUFFIXES
1574 return extension_loaders + [source, bytecode]
1575
1576
1577def _set_bootstrap_module(_bootstrap_module):

Callers 3

spec_from_file_locationFunction · 0.85
find_specMethod · 0.85
_installFunction · 0.85

Calls 2

replaceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…