Skip to content

Conversation

@Eclips4
Copy link
Member

@Eclips4 Eclips4 commented Jun 19, 2024

@nineteendo
Copy link
Contributor

Thanks, I had noticed this a few times already, but thought it was a macOS issue.

@Eclips4
Copy link
Member Author

Eclips4 commented Jun 19, 2024

Uhm, I guess we need another approach to do this instead of define these functions only if Py_DEBUG is defined. Maybe convert them to macroses and define them only if Py_DEBUG defined?
UPD: I've found different approach.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM. But next time, try to find a better PR title, since this one is very generic. I will enhance it when I will merge your PR.

@vstinner vstinner enabled auto-merge (squash) June 19, 2024 07:34
@vstinner vstinner merged commit a816cd6 into python:main Jun 19, 2024
@nineteendo
Copy link
Contributor

nineteendo commented Jun 19, 2024

Do we backport this or do we close the issue?

https://github.com/python/cpython/blob/3.13/Python/import.c

@vstinner vstinner added the needs backport to 3.13 bugs and security fixes label Jun 19, 2024
@miss-islington-app
Copy link

Thanks @Eclips4 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 19, 2024
…120727)

Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
(cherry picked from commit a816cd6)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
@bedevere-app
Copy link

bedevere-app bot commented Jun 19, 2024

GH-120729 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 19, 2024
@vstinner
Copy link
Member

Do we backport this or do we close the issue?

I didn't know that 3.13 was affected. I backported the change.

vstinner pushed a commit that referenced this pull request Jun 19, 2024
… (#120729)

gh-120726: Fix compiler warnings on is_core_module() (GH-120727)

Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
(cherry picked from commit a816cd6)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
@Eclips4 Eclips4 deleted the issue-120726 branch June 19, 2024 10:31
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
…0727)

Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…0727)

Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…0727)

Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
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.

4 participants