CPython

CPython attributes

This document defines CPython related attributes.

AttributeTypeDescriptionExamplesStability
cpython.gc.generationintValue of the garbage collector collection generation.0; 1; 2Development

cpython.gc.generation has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
0Generation 0Development
1Generation 1Development
2Generation 2Development