site — Site-specific configuration hook — Python 3.14.7 documentation

docs.python.org

Tin mới

annotationlib — Functionality for introspecting annotations

Custom Python Interpreters

Python Module Index

3.14.7 Documentation

The Python Standard Library

Python Runtime Services

free-threaded build

This module is automatically imported during initialization. The automatic import can be suppressed using the interpreter’s -S option.

Virtual Environments

Changed in version 3.14: site is no longer responsible for updating sys.prefix and sys.exec_prefix on Virtual Environments. This is now done during the path initialization. As a result, under Virtual Environments, sys.pr

readline: GNU readline support for Python.

On systems that support readline, this module will also import and configure the rlcompleter module, if Python is started in interactive mode and without the -S option. The default behavior is to enable tab completion an

rlcompleter: Python identifier completion, suitable for the GNU readline library.

On systems that support readline, this module will also import and configure the rlcompleter module, if Python is started in interactive mode and without the -S option. The default behavior is to enable tab completion an

Readline configuration¶

On systems that support readline, this module will also import and configure the rlcompleter module, if Python is started in interactive mode and without the -S option. The default behavior is to enable tab completion an

Readline configuration¶

On systems that support readline, this module will also import and configure the rlcompleter module, if Python is started in interactive mode and without the -S option. The default behavior is to enable tab completion an

sys.__interactivehook__

On systems that support readline, this module will also import and configure the rlcompleter module, if Python is started in interactive mode and without the -S option. The default behavior is to enable tab completion an

user installation scheme

Command-line interface¶

The site module also provides a way to get the user directories from the command line: