Title: [C API] Add PyType_Lookup() function · Issue #139847 · python/cpython · GitHub
Open Graph Title: [C API] Add PyType_Lookup() function · Issue #139847 · python/cpython
X Title: [C API] Add PyType_Lookup() function · Issue #139847 · python/cpython
Description: Feature or enhancement There is a private _PyType_Lookup() function which is used by 27 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) ansys_pythonnet-3.1.0rc6 casadi (3.7.2) catboost (1.2.8) cvxpy (1.7.2) cvxpy_base (1.7.2) c...
Open Graph Description: Feature or enhancement There is a private _PyType_Lookup() function which is used by 27 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) ansys_pythonnet-3.1.0rc6 casadi (3.7.2) catboost (1...
X Description: Feature or enhancement There is a private _PyType_Lookup() function which is used by 27 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) ansys_pythonnet-3.1.0rc6 casadi (3.7.2) catboost (1...
Opengraph URL: https://github.com/python/cpython/issues/139847
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[C API] Add PyType_Lookup() function","articleBody":"# Feature or enhancement\n\nThere is a private `_PyType_Lookup()` function which is used by 27 projects of the PyPI top 15,000 projects:\n\n* Nuitka (2.7.16)\n* ansys_pythonnet-3.1.0rc6\n* casadi (3.7.2)\n* catboost (1.2.8)\n* cvxpy (1.7.2)\n* cvxpy_base (1.7.2)\n* cython (3.1.4)\n* extensionclass (6.0)\n* gamsapi (51.1.0)\n* gdal (3.11.4)\n* gevent (25.9.1)\n* htseq (2.0.9)\n* ihm (2.7)\n* m2crypto (0.45.1)\n* mecab-ko (1.0.1)\n* mecab_python3 (1.0.10)\n* msgspec (0.19.0)\n* mupdf (1.21.1.20230112.1504)\n* mypy (1.18.2)\n* pybind11 (3.0.1)\n* pycuda (2025.1.2)\n* pygdal (3.6.4.11)\n* pygraphviz (1.14)\n* python_crfsuite (0.9.11)\n* pythonnet (3.0.5)\n* sentencepiece (0.2.1)\n* yappi (1.6.10)\n\nI propose to make the function public.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-139848\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2025-10-09T13:42:12Z","url":"https://github.com/python/cpython/issues/139847"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d3d5218e-291c-0975-aa95-a04d1e6a7bde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC0A:2A1EC8:3FC991:50AFF8:6B01FE20 |
| html-safe-nonce | cebc9448337de7abbb37210360973a521bf75cab81025c69e37d655e25945d45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzBBOjJBMUVDODozRkM5OTE6NTBBRkY4OjZCMDFGRTIwIiwidmlzaXRvcl9pZCI6IjU3NDgzODU4MTEzMDk2NTc2MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cad8702e25d883a815a55d619c8c8dfafaf2178d61d9ef295621497dd76b6991 |
| hovercard-subject-tag | issue:3499245432 |
| 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/139847/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fc0d347a75546f08e08a27a4616f5f5defcd54af20ce3844aba1baac16fb31c/python/cpython/issues/139847 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fc0d347a75546f08e08a27a4616f5f5defcd54af20ce3844aba1baac16fb31c/python/cpython/issues/139847 |
| og:image:alt | Feature or enhancement There is a private _PyType_Lookup() function which is used by 27 projects of the PyPI top 15,000 projects: Nuitka (2.7.16) ansys_pythonnet-3.1.0rc6 casadi (3.7.2) catboost (1... |
| 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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width