Title: Keep deprecated functions in Python 3.13: remove this deprecation · Issue #105373 · python/cpython · GitHub
Open Graph Title: Keep deprecated functions in Python 3.13: remove this deprecation · Issue #105373 · python/cpython
X Title: Keep deprecated functions in Python 3.13: remove this deprecation · Issue #105373 · python/cpython
Description: There are multiple Python functions marked as "deprecated", usually only in the documentation, or sometimes in comments, whereas the feature is there for a long time and there is no need to remove them, or the rationale changed. For exam...
Open Graph Description: There are multiple Python functions marked as "deprecated", usually only in the documentation, or sometimes in comments, whereas the feature is there for a long time and there is no need to remove ...
X Description: There are multiple Python functions marked as "deprecated", usually only in the documentation, or sometimes in comments, whereas the feature is there for a long time and there is no need ...
Opengraph URL: https://github.com/python/cpython/issues/105373
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Keep deprecated functions in Python 3.13: remove this deprecation","articleBody":"There are multiple Python functions marked as \"deprecated\", usually only in the documentation, or sometimes in comments, whereas the feature is there for a long time and there is no *need* to remove them, or the rationale changed.\r\n\r\nFor example, the ``array.array('u')`` format was deprecated since it used the ``Py_UNICODE`` C type (which is deprecated), but the code was updated to use the ``wchar_t`` C type which is fine and not depreated.\r\n\r\nAnother example is passing *NULL* as *value* to ``PyObject_SetAttr(obj, name, value)`` to delete an object attribute is deprecated... but this feature exists since the birth of Python. I don't think that it's really useful to deprecate this behavior: it's fine to keep it. The ``PyObject_DelAttr()`` function is just implemented as a macro passing *NULL*:\r\n\r\n```c\r\n#define PyObject_DelAttr(O, A) PyObject_SetAttr((O), (A), NULL)\r\n```\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-105374\r\n* gh-105394\r\n* gh-105395\r\n* gh-106537\r\n* gh-106538\r\n* gh-106540\r\n* gh-106675\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-06-06T13:02:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/105373/cpython/issues/105373"}
| 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:d9ef2a07-c5ea-cecc-0591-538c41485eb1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD16:3641AF:197D53:2426D5:6969FEDF |
| html-safe-nonce | 5b6be54a0fc9c8df8a87561c59628f9d5aabb5b89b7543d595dad3abad052b89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDE2OjM2NDFBRjoxOTdENTM6MjQyNkQ1OjY5NjlGRURGIiwidmlzaXRvcl9pZCI6IjMxMTM2NDcwMTQxMzQwMjE4NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 504a1df513348503201eb2f04eaab8629ce93b992971f99156af9043b9775f9c |
| hovercard-subject-tag | issue:1743828812 |
| 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/105373/issue_layout |
| twitter:image | https://opengraph.githubassets.com/697aa72445fe7afb22f86efd35f01167b3bd6a9cab96a5b9ff41ccd42876e7bc/python/cpython/issues/105373 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/697aa72445fe7afb22f86efd35f01167b3bd6a9cab96a5b9ff41ccd42876e7bc/python/cpython/issues/105373 |
| og:image:alt | There are multiple Python functions marked as "deprecated", usually only in the documentation, or sometimes in comments, whereas the feature is there for a long time and there is no need to remove ... |
| 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 | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width