Facebook Engineering Blog
Meta contributes new features to Python 3.12

Meta contributes new features to Python 3.12

10/5/2023 · Carl Meyer

What this post added

This post details Meta's significant contributions to the Python 3.12 release, including the implementation of 'Immortal Objects' (PEP 683) to reduce memory usage and enable better parallelism, type system improvements with the '@typing.override' decorator (PEP 698) for safer refactoring, and various performance optimizations such as faster comprehensions (PEP 709), eager asyncio tasks, faster super() calls, and optimizations for hasattr and unittest.mock.Mock. Meta also contributed new benchmarks to the Python Performance Benchmark suite and added core runtime hooks for Cinder (their JIT compiler and Static Python) to enable independent extension modules. This work stems from Meta's extensive use of Python and their commitment to open-source contributions to improve the language for all users.

Read the original post ↗