Use _Alignof to query alignments in the struct module · Issue #132868 · python/cpython · GitHub
Skip to content

Use _Alignof to query alignments in the struct module #132868

Description

@skirpichev

Feature or enhancement

Proposal:

The struct module uses pre-C11 hacks to determine alignment for types:

cpython/Modules/_struct.c

Lines 79 to 106 in 5808889

Now we can use _Alignof operator, as C11-compatible compiler is a build requireent.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions