Product SiteDocumentation Site

Chapter 4. The Python Programming Language

4.1. Dangerous standard library features
4.2. Run-time compilation and code generation
4.3. Sandboxing
Python provides memory safety by default, so low-level security vulnerabilities are rare and typically needs fixing the Python interpreter or standard library itself.
Other sections with Python-specific advice include:

4.1. Dangerous standard library features

Some areas of the standard library, notably the ctypes module, do not provide memory safety guarantees comparable to the rest of Python. If such functionality is used, the advice in Section 1.1, “The core language” should be followed.