Introduction — Python 3.16.0a0 documentation

docs.python.org

Tin mới

The Python Standard Library

Built-in Functions

Python Module Index

3.16.0a0 Documentation

Notes on availability¶

The “Python library” contains several different kinds of components.

random: Generate pseudo-random numbers with various common distributions.

The “Python library” contains several different kinds of components.

WebAssembly platforms¶

The properties and behavior of Python on WebAssembly platforms depend on the Emscripten-SDK or WASI-SDK version, WASM runtimes (browser, NodeJS, wasmtime), and Python build time flags. WebAssembly, Emscripten, and WASI a

subprocess: Subprocess management.

Process-related APIs are not available or always fail with an error. That includes APIs that spawn new processes (fork(), execve()), wait for processes (waitpid()), send signals (kill()), or otherwise interact with proce

socket: Low-level networking interface.

The socket module is available, but is limited and behaves differently from other platforms. On Emscripten, sockets are always non-blocking and require additional JavaScript code and helpers on the server to proxy TCP th

Python embedding API

Mobile platforms can only use Python in “embedded” mode. There is no Python REPL, and no ability to use separate executables such as python or pip. To add Python code to your mobile app, you must use the Python embedding

Using Python on Android

Mobile platforms can only use Python in “embedded” mode. There is no Python REPL, and no ability to use separate executables such as python or pip. To add Python code to your mobile app, you must use the Python embedding

Using Python on iOS

Mobile platforms can only use Python in “embedded” mode. There is no Python REPL, and no ability to use separate executables such as python or pip. To add Python code to your mobile app, you must use the Python embedding

multiprocessing: Process-based parallelism.

On Android, creating subprocesses is possible but officially unsupported. In particular, Android does not support any part of the System V IPC API, so multiprocessing is not available.

curses: An interface to the curses library, providing portable terminal handling.

Mobile apps have no usable stdin at all. While apps can display an on-screen keyboard, this is a software feature, not something that is attached to stdin.

readline: GNU readline support for Python.

Mobile apps have no usable stdin at all. While apps can display an on-screen keyboard, this is a software feature, not something that is attached to stdin.