GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — MAINT: support python 3.10 by tacaswell · Pull Request #16417 · numpy/numpy Conversation
|
|
Ugh. Is it certain that this change will persist to release? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Something like this in #if PY_VERSION_HEX < 0x030a0000 #define Py_SET_TYPE(obj, typ) (Py_TYPE(obj) = typ) #endif |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is part of a series of intentional API breaks to try and condense the python c-api so I am pretty confident that this will persist. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It seems like we should also replace all |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We might want to make a compatibility include file to use until Python3.9 gets dropped. Probably need to use new names to avoid redefinitions. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We are running tests against 3.9-dev, so that should validate that this works. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
In python/cpython#20290 CPython changed `Py_TYPE` from a macro to an inline function. This requires a code change to us `Py_SET_TYPE` instead when using `Py_TYPE()` as a lvalue in c code. In python/cpython#20429 CPython changed `Py_SIZE` from a macro to an inline function. This requires a code change to us `Py_SET_SIZE` instead of using `Py_SIZE` as a lvalue in c code.
To support the change to Py_SIZE and Py_TYPE the Py_SET_SIZE and Py_SET_TYPE macros are provided in py39. This provides the same macros falling back to the old method for < py39.
cf7a282 to
4bf06ad
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This might look better up top with the similar compatibility hacks.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I should also add a reference for the other one.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The testing error is on the azure end and may be ignored. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6afdd10 to
0b7907d
Compare
Co-authored-by: Eric Wieser <[email protected]>
0b7907d to
77c2c23
Compare
|
Thanks Thomas. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This includes a fix for Python 3.10: numpy/numpy#16417 Signed-off-by: Akihiko Odaki <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.