bpo-32388: Remove cross-version binary compatibility requirement in tp_flags by pitrou · Pull Request #4944 · python/cpython

scoder

JimJJewett

@pitrou

…p_flags

It is now allowed to add new fields at the end of the PyTypeObject struct
(and even in the middle, if we are so inclined) in feature releases without
having to allocate a dedicated compatibility flag in tp_flags.

This will reduce the risk of running out of bits in the 32-bit tp_flags value.

tirkarthi

jdemeyer

@pitrou

@pitrou

@pitrou

@pitrou pitrou deleted the no_tpflags_compatibility branch

May 29, 2019 20:12

DinoV pushed a commit to DinoV/cpython that referenced this pull request

Jan 14, 2020
…p_flags (pythonGH-4944)

It is now allowed to add new fields at the end of the PyTypeObject struct without having to allocate a dedicated compatibility flag in tp_flags.

This will reduce the risk of running out of bits in the 32-bit tp_flags value.