3. Configure Python — Python 3.11.16 documentation

docs.python.org

Tin mới

2. Using Python on Unix platforms

4. Using Python on Windows

Python Module Index

3.11.16 Documentation

Python Setup and Usage

sqlite3: A DB-API 2.0 implementation using SQLite 3.x.

Support loadable extensions in the _sqlite extension module (default is no) of the sqlite3 module.

socket: Low-level networking interface.

Disable IPv6 support (enabled by default if supported), see the socket module.

sys.int_info.bits_per_digit

Define the size in bits of Python int digits: 15 or 30 bits.

Compile-time configuration

Select the default time zone search path for zoneinfo.TZPATH. See the Compile-time configuration of the zoneinfo module.

decimal: Implementation of the General Decimal Arithmetic Specification.

Build the _decimal extension module using a thread-local context rather than a coroutine-local context (default), see the decimal module.

contextvars: Context Variables

Build the _decimal extension module using a thread-local context rather than a coroutine-local context (default), see the decimal module.

dbm: Interfaces to various Unix "database" formats.

Override order to check db backends for the dbm module

PYTHONCOERCECLOCALE

Disable C locale coercion to a UTF-8 based locale (enabled by default).

ensurepip: Bootstrapping the "pip" installer into an existing Python installation or virtual environment.

Directory of wheel packages used by the ensurepip module (none by default).

test: Regression tests package containing the testing suite for Python.

Don’t build nor install test modules, like the test package or the _testcapi extension module (built and installed by default).

warnings: Issue warning messages and control their disposition.

Display all warnings by default: the list of default warning filters is empty in the warnings module.

debug hooks on memory allocators

Install debug hooks on memory allocators to detect buffer overflow and other memory errors.

Python Development Mode

A debug build is Python built with the --with-pydebug configure option.

Instrumenting CPython with DTrace and SystemTap

See Instrumenting CPython with DTrace and SystemTap.

ctypes: A foreign function library for Python.

Build the _ctypes extension module using an installed ffi library, see the ctypes module (default is system-dependent).

readline: GNU readline support for Python. (Unix)

Use editline library for backend of the readline module.

ssl: TLS/SSL wrapper for socket objects

Override the OpenSSL default cipher suites string:

distutils: Support for building and installing Python modules into an existing Python installation.

setup.py: C extensions built using the distutils module.

3.2.4. C extensions¶

Some C extensions are built as built-in modules, like the sys module. They are built with the Py_BUILD_CORE_BUILTIN macro defined. Built-in modules have no __file__ attribute:

3.2.4. C extensions¶

Some C extensions are built as built-in modules, like the sys module. They are built with the Py_BUILD_CORE_BUILTIN macro defined. Built-in modules have no __file__ attribute:

posix: The most common POSIX system calls (normally used via module os). (Unix)

Compiler flags to build a standard library extension module as a built-in module, like the posix module.