Skip to content

API: Remove PyArray_REFCNT and NPY_REFCOUNT#25156

Merged
ngoldbaum merged 1 commit intonumpy:mainfrom
seberg:refcount-cleanup
Nov 16, 2023
Merged

API: Remove PyArray_REFCNT and NPY_REFCOUNT#25156
ngoldbaum merged 1 commit intonumpy:mainfrom
seberg:refcount-cleanup

Conversation

@seberg
Copy link
Member

@seberg seberg commented Nov 15, 2023

These don't really make sense, even less as public API.

These don't really make sense, even less as public API.
@ngoldbaum
Copy link
Member

ngoldbaum commented Nov 16, 2023

I can find no usages of these macros in any downstream code.

Anyone trying to use this with numpy 2.0 in code I don't find with a github search will see a new compilation error with the name of the macro in it and hopefully that will be enough to find this pull request.

That seems fine to me. Any other concern that I should have before hitting the merge button? This isn't an ABI break, right? And even if it is, we're about to do some of those...

@seberg
Copy link
Member Author

seberg commented Nov 16, 2023

Any other concern that I should have before hitting the merge button?

No. Exactly right, even if there was usage, it is an obvious replacement.

@ngoldbaum
Copy link
Member

In it goes, thanks @seberg.

@ngoldbaum ngoldbaum merged commit 83112cd into numpy:main Nov 16, 2023
@seberg seberg deleted the refcount-cleanup branch November 16, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants