The Python standard library — Python 3.15.2 documentation
The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python ...
The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python ...
Python HOWTOs In-depth topic manuals. Installing Python modules Third-party modules and PyPI.org. Extending and embedding For C/C++ programmers.
Source code: Lib/shutil.py The shutil module offers a number of high-level operations on files and collections of files. In particular, functions are ...
The modules described in this chapter deal with disk files and directories. For example, there are modules for reading the properties of files, ...
Programmers can also describe the CSV formats understood by other applications or define their own special-purpose CSV formats. The csv module’s reader and writer objects read and write sequences.
A program doesn’t run any faster when it is read from a .pyc file than when it is read from a .py file; the only thing that’s faster about .pyc files is the speed with which they are loaded. The module compileall can create .pyc files for all modules in a directory.
Code objects can be executed by exec() or eval() . source can either be a normal string, a byte string, or an AST object. Refer to the ast module documentation ...
It converts Python byte code to C arrays; with a C compiler you can embed all your modules into a new program, which is then linked with the standard Python modules. It works by scanning your source recursively for import statements (in both forms)...
Source code: Lib/os.py This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see ...