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

Fix invalid fastcall dict when keywords are passed #5675

Merged
merged 1 commit into from Sep 12, 2023

Conversation

da-woods
Copy link
Contributor

@da-woods da-woods commented Sep 2, 2023

Fixes #5665

I'm slightly surprised this hasn't caused more bugs. We're passing a dict where we should be passing a tuple of names.

Replacement should hopefully be right, but I don't know how optimized or otherwise it is.

Fixes cython#5665

I'm slightly surprised this hasn't caused more bugs. We're passing
a dict where we should be passing a tuple of names.

Replacement should hopefully be right, but I don't know how
optimized or otherwise it is.
@mgorny
Copy link
Contributor

mgorny commented Sep 12, 2023

Thank you! I can confirm that with this patch applied, I can get gssapi to work.

@scoder
Copy link
Contributor

scoder commented Sep 12, 2023

We could probably handle the kwargs case better, but this prevents crashes, so we don't lose anything.

@scoder scoder added this to the 3.0.3 milestone Sep 12, 2023
@scoder scoder merged commit a1573bc into cython:master Sep 12, 2023
76 checks passed
@scoder
Copy link
Contributor

scoder commented Sep 12, 2023

Thanks, also for the testing.

@da-woods da-woods deleted the invalid-fastcall-dict branch September 12, 2023 09:52
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.

[BUG] metaclass=EnumMeta causes: PyTuple_GET_SIZE: Assertion PyTuple_Check(op)' failed`
3 participants