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

gh-110864: Partially revert 110784, constraints cannot be NULL #110922

Merged
merged 2 commits into from Oct 16, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Oct 16, 2023

I've also changed the exception message to be uppercase, like all others are.
Refs #110784
Refs #110868

@sobolevn sobolevn changed the title gh-110784: Partially revert gh-110784, constraints cannot be NULL gh-110784: Partially revert #110784, constraints cannot be NULL Oct 16, 2023
@sobolevn sobolevn changed the title gh-110784: Partially revert #110784, constraints cannot be NULL gh-110784: Partially revert 110784, constraints cannot be NULL Oct 16, 2023
@sobolevn sobolevn changed the title gh-110784: Partially revert 110784, constraints cannot be NULL gh-110864: Partially revert 110784, constraints cannot be NULL Oct 16, 2023
Py_XDECREF(bound);
return NULL;
}
if (!PyTuple_CheckExact(constraints)) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can actually turn this into an assert? If I understand correctly, AC should guarantee it's always a tuple.

@JelleZijlstra JelleZijlstra enabled auto-merge (squash) October 16, 2023 14:34
@JelleZijlstra JelleZijlstra merged commit 6a4528d into python:main Oct 16, 2023
27 checks passed
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
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.

None yet

2 participants