The Python Standard Library¶
Python’s standard library is very extensive, offering a wide range of facilities as indicated by the long table of contents listed below. 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 programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming. Some of these modules are explicitly designed to encourage and enhance the portability of Python programs by abstracting away platform-specifics into platform-neutral APIs.
- 1. Built-in Functions
- 2. Non-essential Built-in Functions
- 3. Built-in Constants
- 4. Magic methods
- 4.1. Basics
- 4.2. Classes That Act Like Iterators
- 4.3. Computed Attributes
- 4.4. Classes That Act Like Functions
- 4.5. Classes That Act Like Sets
- 4.6. Classes That Act Like Dictionaries
- 4.7. Classes That Act Like Numbers
- 4.8. Classes That Can Be Compared
- 4.9. Classes That Can Be Serialized
- 4.10. Classes That Can Be Used in a with Block
- 4.11. Others