Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_module_path
codeintel.parsers._module_path
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| module_path_for | python_parser.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| parse_file | __init__.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| parsers | __init__.py | same file |
codeintel.parsers._module_pathbackend/app/codeintel/parsers/__init__.py, lines 25–29Open source
def _module_path(path: str) -> str: if path.endswith((".py", ".pyi")): return module_path_for(path) stem = path.rsplit(".", 1)[0] if "." in path.rsplit("/", 1)[-1] else path return stem.replace("/", ".")What the index recorded
- Signature
def _module_path(path: str) -> str:- File
backend/app/codeintel/parsers/__init__.py- Lines
- 25–29
- Parser
- python-ast
- Git blob
02097151776f80e9d044e640b7d140f7f516c1d3- Call sites
- 4 named, 1 resolved, 3 left unlinked
