I’m sure somewhere there is a documentation page which explains how the import statement modifies the sys.path variable depending on the form of the import.
For example, packages and modules have slightly different rules.
This is also related to executing a module, or executing a module inside a package with python3 -m. The two forms also change how sys.path is initialized.
If someone knows where this page is and could help me find it I would greatly appreciate it.
The import statement does not modify sys.path, it just uses it.
The difference between the different methods to execute python is documented right by sys.path, but I agree that this information is a bit scattered. Most of your questions should be answered by 5. The import system — Python 3.12.4 documentation