mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
The dataclasses `__init__` function is generated dynamically by a call to `exec()` and so doesn't have deferred reference counting enabled. Enable deferred reference counting on functions when assigned as an attribute to type objects to avoid reference count contention when creating dataclass instances. |
||
|---|---|---|
| .. | ||
| ftscalingbench.py | ||