Skip to content

[fix] Fix std::ffi import for _Py_NegativeRefcount#5847

Merged
ngoldbaum merged 2 commits into
PyO3:mainfrom
Embers-of-the-Fire:fix-5842
Mar 2, 2026
Merged

[fix] Fix std::ffi import for _Py_NegativeRefcount#5847
ngoldbaum merged 2 commits into
PyO3:mainfrom
Embers-of-the-Fire:fix-5842

Conversation

@Embers-of-the-Fire

Copy link
Copy Markdown
Contributor

Fixes #5842 by adding one more cfg.

Additionally, I would generally suggest importing std::ffi as a whole, rather than importing individual c_foo type declarations. This approach helps avoid potential naming conflicts or issues in the future. (Not introduced in this PR)

@Embers-of-the-Fire Embers-of-the-Fire changed the title fix: update type import cfg [fix] Fix std::ffi import for _Py_NegativeRefcount Mar 1, 2026
@Embers-of-the-Fire Embers-of-the-Fire marked this pull request as ready for review March 1, 2026 04:26
@ngoldbaum

Copy link
Copy Markdown
Contributor

Additionally, I would generally suggest importing std::ffi as a whole, rather than importing individual c_foo type declarations. This approach helps avoid potential naming conflicts or issues in the future. (Not introduced in this PR)

Makes sense. We should probably also add a Py_REF_DEBUG build to CI on the lowest supported Python version.

@ngoldbaum ngoldbaum added this pull request to the merge queue Mar 2, 2026
Merged via the queue into PyO3:main with commit f3396b3 Mar 2, 2026
43 of 44 checks passed
@Embers-of-the-Fire Embers-of-the-Fire deleted the fix-5842 branch March 3, 2026 09:07
davidhewitt pushed a commit that referenced this pull request Mar 31, 2026
* fix: update type import cfg

* add: add newsfragments
davidhewitt pushed a commit that referenced this pull request Apr 2, 2026
* fix: update type import cfg

* add: add newsfragments
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.

Can't build with Python 3.11

2 participants