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)
| 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): |