Title: Usage of deprecated Python functions slated for removal in Python 3.15 · Issue #2592 · pythonnet/pythonnet · GitHub
Open Graph Title: Usage of deprecated Python functions slated for removal in Python 3.15 · Issue #2592 · pythonnet/pythonnet
X Title: Usage of deprecated Python functions slated for removal in Python 3.15 · Issue #2592 · pythonnet/pythonnet
Description: Hi, I'm a CPython core developer and we are currently working on the next alpha, namely Python 3.15. In Python 3.15, we are removing a bunch of deprecated functions (see python/cpython#133661 and https://github.com/python/cpython/pull/13...
Open Graph Description: Hi, I'm a CPython core developer and we are currently working on the next alpha, namely Python 3.15. In Python 3.15, we are removing a bunch of deprecated functions (see python/cpython#133661 and h...
X Description: Hi, I'm a CPython core developer and we are currently working on the next alpha, namely Python 3.15. In Python 3.15, we are removing a bunch of deprecated functions (see python/cpython#133661 a...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/2592
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Usage of deprecated Python functions slated for removal in Python 3.15","articleBody":"Hi, I'm a CPython core developer and we are currently working on the next alpha, namely Python 3.15. In Python 3.15, we are removing a bunch of deprecated functions (see https://github.com/python/cpython/pull/133661 and https://github.com/python/cpython/pull/133661/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9).\n\nWe found the following references in this project, but as I never coded in .NET, I don't know how to change them:\n\n```\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Native/CustomMarshaler.cs: /// Ex. Py_GetPythonHome\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/PythonEngine.cs: IntPtr p = Runtime.TryUsingDll(() =\u003e Runtime.Py_GetProgramName());\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/PythonEngine.cs: IntPtr p = Runtime.TryUsingDll(() =\u003e Runtime.Py_GetPythonHome());\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/PythonEngine.cs: IntPtr p = Runtime.TryUsingDll(() =\u003e Runtime.Py_GetPath());\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.Delegates.cs: Py_GetProgramName = (delegate* unmanaged[Cdecl]\u003cIntPtr\u003e)GetFunctionByName(nameof(Py_GetProgramName), GetUnmanagedDll(_PythonDll));\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.Delegates.cs: Py_GetPythonHome = (delegate* unmanaged[Cdecl]\u003cIntPtr\u003e)GetFunctionByName(nameof(Py_GetPythonHome), GetUnmanagedDll(_PythonDll));\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.Delegates.cs: Py_GetPath = (delegate* unmanaged[Cdecl]\u003cIntPtr\u003e)GetFunctionByName(nameof(Py_GetPath), GetUnmanagedDll(_PythonDll));\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.Delegates.cs: internal static delegate* unmanaged[Cdecl]\u003cIntPtr\u003e Py_GetProgramName { get; }\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.Delegates.cs: internal static delegate* unmanaged[Cdecl]\u003cIntPtr\u003e Py_GetPythonHome { get; }\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.Delegates.cs: internal static delegate* unmanaged[Cdecl]\u003cIntPtr\u003e Py_GetPath { get; }\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.cs: internal static IntPtr Py_GetProgramName() =\u003e Delegates.Py_GetProgramName();\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.cs: internal static IntPtr Py_GetPythonHome() =\u003e Delegates.Py_GetPythonHome();\npythonnet-3.0.5.tar.gz: pythonnet-3.0.5/src/runtime/Runtime.cs: internal static IntPtr Py_GetPath() =\u003e Delegates.Py_GetPath();\n```\n","author":{"url":"https://github.com/picnixz","@type":"Person","name":"picnixz"},"datePublished":"2025-05-09T11:44:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2592/pythonnet/issues/2592"}
| 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:10378414-25f8-7cee-b8da-aa7abc36b7bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C53A:3280E7:29703F1:37F137E:6A548958 |
| html-safe-nonce | e2d3aa454effc6bccf9c3f49505666885e76200851fde2c1e6d18e1117ccabf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTNBOjMyODBFNzoyOTcwM0YxOjM3RjEzN0U6NkE1NDg5NTgiLCJ2aXNpdG9yX2lkIjoiNTUyODY0NDA0MDIxMDU0OTA4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1f9dddfc0c445241023d30abb866c837fe14b1ce980e3956fdc497d9b0aad54a |
| hovercard-subject-tag | issue:3051899372 |
| 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/pythonnet/pythonnet/2592/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2fface4a7eae2265cebabcb16ea63964b431f08ebabe55bb4e688a1bc4c8e227/pythonnet/pythonnet/issues/2592 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2fface4a7eae2265cebabcb16ea63964b431f08ebabe55bb4e688a1bc4c8e227/pythonnet/pythonnet/issues/2592 |
| og:image:alt | Hi, I'm a CPython core developer and we are currently working on the next alpha, namely Python 3.15. In Python 3.15, we are removing a bunch of deprecated functions (see python/cpython#133661 and h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | picnixz |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | 03ccb116376fd46e8ba2a4cdc541e35f13f70734 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width