MCPcopy
hub / github.com/pex-tool/pex / iter

Method iter

pex/interpreter.py:949–958  ·  view source on GitHub ↗

Iterate all valid interpreters found in `paths`. NB: The paths can either be directories to search for python binaries or the paths of python binaries themselves. :param paths: The paths to look for python interpreters; by default the `PATH`.

(cls, paths=None)

Source from the content-addressed store, hash-verified

947
948 @classmethod
949 def iter(cls, paths=None):
950 # type: (Optional[Iterable[str]]) -> Iterator[PythonInterpreter]
951 """Iterate all valid interpreters found in `paths`.
952
953 NB: The paths can either be directories to search for python binaries or the paths of python
954 binaries themselves.
955
956 :param paths: The paths to look for python interpreters; by default the `PATH`.
957 """
958 return cls._filter(cls._find(cls._paths(paths=paths)))
959
960 @classmethod
961 def iter_candidates(cls, paths=None, path_filter=None):

Callers 1

allMethod · 0.45

Calls 3

_filterMethod · 0.80
_findMethod · 0.80
_pathsMethod · 0.80

Tested by

no test coverage detected