Title: `uuid` has a bunch of deprecated functions: let's decide what to do with them · Issue #113308 · python/cpython · GitHub
Open Graph Title: `uuid` has a bunch of deprecated functions: let's decide what to do with them · Issue #113308 · python/cpython
X Title: `uuid` has a bunch of deprecated functions: let's decide what to do with them · Issue #113308 · python/cpython
Description: Feature or enhancement uuid.py has several protected deprecated functions which are no longer in use: cpython/Lib/uuid.py Lines 591 to 594 in 4afa7be def _load_system_functions(): """[DEPRECATED] Platform-specific functions loaded at imp...
Open Graph Description: Feature or enhancement uuid.py has several protected deprecated functions which are no longer in use: cpython/Lib/uuid.py Lines 591 to 594 in 4afa7be def _load_system_functions(): """[DEPRECATED] P...
X Description: Feature or enhancement uuid.py has several protected deprecated functions which are no longer in use: cpython/Lib/uuid.py Lines 591 to 594 in 4afa7be def _load_system_functions(): """...
Opengraph URL: https://github.com/python/cpython/issues/113308
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`uuid` has a bunch of deprecated functions: let's decide what to do with them","articleBody":"# Feature or enhancement\n\n`uuid.py` has several protected deprecated functions which are no longer in use:\n\nhttps://github.com/python/cpython/blob/4afa7be32da32fac2a2bcde4b881db174e81240c/Lib/uuid.py#L591-L594\n\nhttps://github.com/python/cpython/blob/4afa7be32da32fac2a2bcde4b881db174e81240c/Lib/uuid.py#L567-L575\n\nAnd one unused module-level var:\n\nhttps://github.com/python/cpython/blob/4afa7be32da32fac2a2bcde4b881db174e81240c/Lib/uuid.py#L583\n\nThe problem is that they were not deprecated with a warning. Only with docs.\nBut, right now they are deprecated since 2020.\n\nThis has a big history:\n- https://github.com/python/cpython/issues/72196\n- https://github.com/python/cpython/issues/84681 and https://github.com/python/cpython/pull/19948\n- https://github.com/python/cpython/pull/3796\n\nSome projects in the wild use `_load_system_functions`, despite the fact it is deprecated and was never documented and always was protected.\n\nExamples:\n- https://github.com/spulec/freezegun/blob/5e06dff53244992204706adf6907e7138ac96d39/freezegun/api.py#L71\n- https://github.com/pganssle/time-machine/blob/ccc59927b4c51e35895c34578cba7aca69f28055/src/time_machine/__init__.py#L211\n- https://github.com/adamchainz/time-machine/blob/39e327e18d52ebc76d3973b465ff42e139fd651d/src/time_machine/__init__.py#L223\n\nSo, what should we do?\n1. Add a proper warning, schedule it for removal in two versions\n2. Just remove them\n\nI think that `1.` is safer.\nI would like to work on it after the decision is made.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-115934\n* gh-117832\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-12-20T08:36:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/113308/cpython/issues/113308"}
| 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:fd3e43f2-454a-1a92-a3e3-f33a8d28a397 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E328:531C6:E3054E:13DEE3A:696A264F |
| html-safe-nonce | 8dbb1513faaea8fa6038995bec0ef4412d4b33750f814f1c5d67ba1fa603a0c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzI4OjUzMUM2OkUzMDU0RToxM0RFRTNBOjY5NkEyNjRGIiwidmlzaXRvcl9pZCI6IjYxMjQzNjM3OTk1MTYwMzA1NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | adb8eddebaecbe51b04bdcd430e8793332d8ec99cee1bb19aed5c9b4280f947f |
| hovercard-subject-tag | issue:2050093134 |
| 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/113308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/daee85625323b52e8542489fcff5be63d7dc51558663434b8813419d8113ecc0/python/cpython/issues/113308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/daee85625323b52e8542489fcff5be63d7dc51558663434b8813419d8113ecc0/python/cpython/issues/113308 |
| og:image:alt | Feature or enhancement uuid.py has several protected deprecated functions which are no longer in use: cpython/Lib/uuid.py Lines 591 to 594 in 4afa7be def _load_system_functions(): """[DEPRECATED] P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| 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 | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width