site — Site-specific configuration hook — Python 3.16.0a0 documentation

docs.python.org

Tin mới

annotationlib — Functionality for introspecting annotations

Custom Python Interpreters

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Python Runtime Services

Path extensions (.pth files)¶

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

Path extensions (.pth files)¶

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

Path extensions (.pth files)¶

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

free-threaded build

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

Path extensions (.pth files)¶

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

pkgutil.resolve_name()

A startup entry point file is a file whose name has the form name.start and exists in one of the site-packages directories described above. Each file specifies entry points to be called during interpreter startup, using

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

user installation scheme

os.path.normcase()

Join paths with os.path.join(), attempt to make the result absolute with os.path.abspath(), and return a 2-tuple containing the absolute path and its case-normalized form as produced by os.path.normcase(). If os.path.abs

Command-line interface¶

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