Title: C API: Cython 3.0 uses private functions removed in Python 3.13 (numpy 1.25.1 fails to build) · Issue #107076 · python/cpython · GitHub
Open Graph Title: C API: Cython 3.0 uses private functions removed in Python 3.13 (numpy 1.25.1 fails to build) · Issue #107076 · python/cpython
X Title: C API: Cython 3.0 uses private functions removed in Python 3.13 (numpy 1.25.1 fails to build) · Issue #107076 · python/cpython
Description: numpy 1.25.1 fails to build on Python 3.13: Cython uses private C API removed in Python 3.13. Example of build errors. I open an issue since Python 3.13 does not provide obvious replacement for these removed functions. (1) Cython uses re...
Open Graph Description: numpy 1.25.1 fails to build on Python 3.13: Cython uses private C API removed in Python 3.13. Example of build errors. I open an issue since Python 3.13 does not provide obvious replacement for the...
X Description: numpy 1.25.1 fails to build on Python 3.13: Cython uses private C API removed in Python 3.13. Example of build errors. I open an issue since Python 3.13 does not provide obvious replacement for the...
Opengraph URL: https://github.com/python/cpython/issues/107076
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C API: Cython 3.0 uses private functions removed in Python 3.13 (numpy 1.25.1 fails to build)","articleBody":"numpy 1.25.1 fails to build on Python 3.13: Cython uses private C API removed in Python 3.13. Example of build errors.\r\n\r\nI open an issue since Python 3.13 does not provide obvious replacement for these removed functions.\r\n\r\n(1) Cython uses removed **_PyInterpreterState_GetConfig()**:\r\n\r\n```c\r\n static void __Pyx_init_assertions_enabled(void) {\r\n __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current-\u003einterp)-\u003eoptimization_level;\r\n }\r\n```\r\n\r\n(2) Cython uses removed **_PyVectorcall_Function()** in __Pyx_PyObject_FastCallDict():\r\n\r\n```c\r\nstatic CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject **args, size_t _nargs, PyObject *kwargs) {\r\n ..\r\n #if CYTHON_VECTORCALL\r\n vectorcallfunc f = _PyVectorcall_Function(func);\r\n if (f) {\r\n return f(func, args, (size_t)nargs, kwargs);\r\n }\r\n ...\r\n}\r\n```\r\n\r\n(3) Cython uses removed **_PyUnicode_FastCopyCharacters()** in __Pyx_PyUnicode_ConcatInPlaceImpl()\r\n\r\n```c\r\nstatic CYTHON_INLINE PyObject *__Pyx_PyUnicode_ConcatInPlaceImpl(PyObject **p_left, PyObject *right\r\n #if CYTHON_REFNANNY\r\n , void* __pyx_refnanny\r\n #endif\r\n ) {\r\n ...\r\n // copy 'right' into the newly allocated area of 'left'\r\n _PyUnicode_FastCopyCharacters(*p_left, left_len, right, 0, right_len);\r\n return *p_left;\r\n ...\r\n }\r\n```\r\n\r\nBut also in __Pyx_PyUnicode_Join():\r\n\r\n```c\r\nstatic PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,\r\n Py_UCS4 max_char) {\r\n ...\r\n #if CYTHON_COMPILING_IN_CPYTHON \u0026\u0026 PY_VERSION_HEX \u003e= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)\r\n _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);\r\n #else\r\n ...\r\n}\r\n```","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-07-22T22:44:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/107076/cpython/issues/107076"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1432ce92-d919-3b13-fd5b-56f56adc6038 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCBE:31FE0A:15A5688:1E3C642:696A4489 |
| html-safe-nonce | 5817267032fad70e9c4efe1f7fe08da9749f0bdd69902b20f462e3de174af14c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0JFOjMxRkUwQToxNUE1Njg4OjFFM0M2NDI6Njk2QTQ0ODkiLCJ2aXNpdG9yX2lkIjoiNzYyMDI1NTY5NTU5MjExMzI4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 397c3852821ca0ac252d28049f0c1396f02fc60f3b9e761ba15c65f966afeddd |
| hovercard-subject-tag | issue:1816916740 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/107076/issue_layout |
| twitter:image | https://opengraph.githubassets.com/47e8eb0aafe62072f6a7adc509a3b7fe5e1ccb1760fe4090bf673785d5f84b31/python/cpython/issues/107076 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47e8eb0aafe62072f6a7adc509a3b7fe5e1ccb1760fe4090bf673785d5f84b31/python/cpython/issues/107076 |
| og:image:alt | numpy 1.25.1 fails to build on Python 3.13: Cython uses private C API removed in Python 3.13. Example of build errors. I open an issue since Python 3.13 does not provide obvious replacement for the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width