Version-Specific Features

Python 3.15 — Package startup configuration files

Site processing supports .start files containing callable entry points rather than executable import lines in .pth files. A matching .start file suppresses executable .pth lines; path extension lines remain. Startup hooks execute code, so audit installed packages. Requires Python 3.15 or the relevant build; example is not executed locally.

Formal Syntax & Structure

python syntaxpython
package.start containing package.module:callable

Return Value

Feature-specific

No single return type; see the example and feature description.

Working Example

Example Snippetpython
# Illustrative .start file content (not Python syntax):# demo.bootstrap:initialize# The referenced no-argument function is called during site processing.
Python Reference