Skip to content

ABI breaks between debug and non-debug build in generated files. #108918

Open
@markshannon

Description

@markshannon

Bug report

Bug description:

The set of generated objects in the various /Include/internal/pycore_ ... generated.h header files depends on configuration flags.
This causes unnecessary churn and defeats some PR checks.
It also makes it hard to understand what is going on.

Currently we scan the C source code looking for specific patterns, but this is evidently a somewhat flaky way of doing things.
The set of objects should be defined in a checked-in file, to avoid the above issues.

I would suggest a Python file defining the list of strings, possibly with aliases:

name
alias = "not an identifier"

would define the two strings: "name" referenced the symbol _PyPrefix_name and "not an identifier" referenced the symbol _PyPrefix_alias. PyPrefix is a placeholder for the actual prefix.

Metadata

Metadata

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions