cpython/Tools/c-analyzer/cpython
Eric Snow dd4c8aca61
[3.12] gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (gh-122241)
In gh-121602, I applied a fix to a builtin types initialization bug.
That fix made sense in the context of some broader future changes,
but introduced a little bit of extra complexity.  For earlier versions
those future changes are not relevant; we can avoid the extra complexity.
Thus we can revert that earlier change and replace it with this one,
which is more focused and conceptually simpler.  This is essentially
the implementation of an idea that @markshannon pointed out to me.

Note that this change would be much smaller if we didn't have to deal
with repr compatibility for builtin types that explicitly inherit tp slots
(see expect_manually_inherited()).  The alternative is to stop
*explicitly* inheriting tp slots in static PyTypeObject values,
which is churn that we can do separately.

(cherry picked from commit 716c6771fc, AKA gh-121932)
2024-07-24 19:07:32 +00:00
..
__init__.py bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00
__main__.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_analyzer.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_builtin_types.py gh-94673: [c-analyzer] Add a Script to Identify Static Types (#94989) 2022-07-18 19:03:57 -06:00
_capi.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_files.py bpo-36876: Make sure the c-analyzer is checking all the source files.' (gh-31264) 2022-02-10 16:14:19 -07:00
_parser.py [3.12] gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431) (#115469) 2024-02-14 14:14:34 -08:00
globals-to-fix.tsv [3.12] gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (gh-122241) 2024-07-24 19:07:32 +00:00
ignored.tsv [3.12] Remove imp_dummy_def from Tools/c-analyzer/cpython/ignored.tsv (gh-112122) (gh-112177) 2023-11-16 14:09:34 -07:00
known.tsv bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00