Skip to content

Conversation

@AZero13
Copy link
Contributor

@AZero13 AZero13 commented Jan 19, 2026

Not all cases can be converted because some structs with this are members in the middle of bigger structs, so changing them introduces warnings. Leave them alone for now.

Not all cases can be converted because some structs with this are members in the middle of bigger structs, so changing them introduces warnings. Leave them alone for now.
@picnixz
Copy link
Member

picnixz commented Jan 20, 2026

As I mentioned on the issue this isn't worth the change IMO.

size_t size;
size_t top;
PyObject * data[1]; /* Variable sized */
PyObject * data[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid flexible array in the public C API (_PyStackChunk in Include/cpython/pystate.h): revert this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants