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

Remove Python 2.x support from C code #470

Merged
merged 3 commits into from
Mar 29, 2025

Conversation

rgommers
Copy link
Collaborator

This makes the code quite a bit easier to read, and the second commit fixes a tiny bug in the extension module initialization code (shouldn't happen in practice, since it's the path for error handling when interning a few short strings would fail).

This makes the module initialization code in particular more readable.
The `#define RETVAL m` was a little odd, and was hiding a bug
in an error handling path - if `intern_strings` failed (doesn't
happen in practice, since it'd require a very small string operation
to run out of memory) then the module was still returned while
on error NULL should be returned instead.
@rdbisme rdbisme merged commit 1c97c28 into pydata:master Mar 29, 2025
39 checks passed
@rgommers rgommers deleted the remove-py2-compat-code branch March 29, 2025 19:47
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.

2 participants