Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.8] bpo-38304: Remove PyConfig.struct_size #16500

Merged
merged 1 commit into from
Sep 30, 2019
Merged

[3.8] bpo-38304: Remove PyConfig.struct_size #16500

merged 1 commit into from
Sep 30, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 30, 2019

@vstinner vstinner changed the title bpo-38304: Remove PyConfig.struct_size [3.8] bpo-38304: Remove PyConfig.struct_size Sep 30, 2019
@vstinner
Copy link
Member Author

If this change is merged, it should be forward-ported to the master branch.

@vstinner
Copy link
Member Author

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

+1 from me. Leaves us time to discuss any further change without hurrying.

@vstinner
Copy link
Member Author

+1 from me. Leaves us time to discuss any further change without hurrying.

I'm a strong believer that a "stable ABI world" is possible... But we cannot implement everything today before 3.8.0rc1 final cut :-)

It seems like we need more time to properly design the overall use story "provide a stable ABI for embedded Python". PyConfig is just a small piece. I didn't notice that vim is directly linked to libpython3.7.so for example.

@pitrou
Copy link
Member

pitrou commented Sep 30, 2019

The "struct size" field didn't define a stable ABI, so it's moot anyway.

@vstinner
Copy link
Member Author

See also PR #16496: @ncoghlan proposes to replace struct_size with header_version.

@brettcannon brettcannon removed their request for review September 30, 2019 22:13
Copy link
Contributor

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

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

Thanks Victor. This update did convince that a stable embedding APi is more plausible than I previously thought it was, but just before an RC isn't the right time for us to be designing the initial pieces of that feature :)

@ncoghlan ncoghlan merged commit bdace21 into python:3.8 Sep 30, 2019
@vstinner vstinner deleted the config_remove_struct_size branch October 1, 2019 08:27
vstinner added a commit that referenced this pull request Oct 1, 2019
For now, we'll rely on the fact that the config structures aren't covered by the stable ABI.

We may revisit this in the future if we further explore the idea of offering a stable embedding API.

(cherry picked from commit bdace21)
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
For now, we'll rely on the fact that the config structures aren't covered by the stable ABI.

We may revisit this in the future if we further explore the idea of offering a stable embedding API.

(cherry picked from commit bdace21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants