]> granicus.if.org Git - python/commit
bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH...
authorAntoine Pitrou <antoine@python.org>
Wed, 29 May 2019 20:12:38 +0000 (22:12 +0200)
committerGitHub <noreply@github.com>
Wed, 29 May 2019 20:12:38 +0000 (22:12 +0200)
commitada319bb6d0ebcc68d3e0ef2b4279ea061877ac8
treee908340371be04bce6b7676fd5f034aff3591a4a
parent43fdbd2729cb7cdbb5afb5d16352f6604859e564
bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH-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.
18 files changed:
Doc/c-api/typeobj.rst
Doc/whatsnew/3.8.rst
Include/object.h
Misc/NEWS.d/next/Core and Builtins/2017-12-21-20-37-40.bpo-32388.6w-i5t.rst [new file with mode: 0644]
Modules/_asynciomodule.c
Modules/_io/bufferedio.c
Modules/_io/fileio.c
Modules/_io/iobase.c
Modules/_io/textio.c
Modules/_io/winconsoleio.c
Modules/_testmultiphase.c
Modules/gcmodule.c
Modules/posixmodule.c
Modules/socketmodule.c
Modules/xxlimited.c
Objects/genobject.c
Objects/object.c
Objects/typeobject.c