---
title: "Meta contributes new features to Python 3.12"
description: "Meta upstreamed several features into CPython 3.12, many derived from its Cinder runtime: immortal objects (PEP 683) that skip reference counting to cut copy-on-write memory in forked Instagram workers, the @typing.override decorator (PEP 698), and inlined comprehensions (PEP 709) running up to 2x faster."
url: "https://swe.quest/articles/meta-contributes-new-features-to-python-3-12-9b216e044692b29d"
canonical: "https://engineering.fb.com/2023/10/05/developer-tools/python-312-meta-new-features/"
source: "Meta Engineering"
published: "2023-10-05"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["python","runtimes","performance","compilers","open-source"]
---

# Meta contributes new features to Python 3.12

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-10-05, 6 min read, Release. Original: [https://engineering.fb.com/2023/10/05/developer-tools/python-312-meta-new-features/](https://engineering.fb.com/2023/10/05/developer-tools/python-312-meta-new-features/)

## Summary

Meta upstreamed several features into CPython 3.12, many derived from its Cinder runtime: immortal objects (PEP 683) that skip reference counting to cut copy-on-write memory in forked Instagram workers, the @typing.override decorator (PEP 698), and inlined comprehensions (PEP 709) running up to 2x faster. Other changes include opt-in eager asyncio tasks that resolve immediately-available results without event-loop scheduling, a LOAD\_SUPER\_ATTR opcode that avoids allocating super objects, and new async\_tree and comprehension benchmarks in pyperformance. New runtime hooks, including vectorcall entrypoints, dict/type/function/code watchers, and a thread-safe perf-map API, let third-party JITs like CinderX plug into CPython.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Python](https://swe.quest/tags/python.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- Python reference counting ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- asyncio basics
- CPython bytecode

## Keywords

Python 3.12, CPython, Cinder, PEP 683, PEP 709, PEP 698, asyncio, PEP 703

## Related posts

- [Lazy is the new fast: How Lazy Imports and Cinder accelerate machine learning at Meta](https://swe.quest/articles/lazy-is-the-new-fast-how-lazy-imports-and-cinder-accelerate-machine-learning-at-1dca895716af1470.md): Meta Engineering · 2024-01-18 · Easy · 5 min read · Python, Runtimes & VMs, Performance engineering, Machine learning, Developer productivity
  Meta rolled out the Cinder Python runtime with Lazy Imports, which transparently defers all imports until first use, across ML frameworks and Jupyter kernels.
- [Introducing Immortal Objects for Python](https://swe.quest/articles/introducing-immortal-objects-for-python-dcfddb697b3a74fe.md): Meta Engineering · 2023-08-15 · Medium · 4 min read · Python, Memory management, Runtimes & VMs, Concurrency
  Instagram's pre-fork Django servers were losing shared memory to copy-on-write because CPython mutates reference counts and GC headers even on effectively read-only objects.
- [How the Cinder JIT’s function inliner helps us optimize Instagram](https://swe.quest/articles/how-the-cinder-jit-s-function-inliner-helps-us-optimize-instagram-bec4e8e06857e7ce.md): Meta Engineering · 2022-05-02 · Hard · 13 min read · Compilers, Python, Runtimes & VMs, Performance engineering
  Cinder, Instagram's open-source CPython fork, ships a method-at-a-time JIT that lowers bytecode through HIR, SSA, LIR and register allocation to native code, removing interpreter dispatch and stack overhead.
- [Pyodide Spin Out and 0.17 Release](https://swe.quest/articles/pyodide-spin-out-and-0-17-release-e4c73c7eb20b7f04.md): Mozilla Hacks · 2021-04-22 · Medium · 7 min read · WebAssembly, Python, JavaScript, Browsers, Open source
  Pyodide, CPython 3.8 compiled to WebAssembly for running Python in the browser, has spun out of Mozilla into an independent, community-governed project, and Mozilla is winding down Iodide.
- [Making Python in Zed Fun](https://swe.quest/articles/making-python-in-zed-fun-1887e7de7b4c59d3.md): Zed · 2025-10-02 · Easy · 5 min read · Python, Developer tools
  Zed reworked its Python support around a generic per-language toolchain selector backed by Microsoft's python-environment-tools, the same library Visual Studio Code uses for venv detection.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
