Title: Undeprecate the onerror argument in shutil.rmtree() · Issue #112645 · python/cpython · GitHub
Open Graph Title: Undeprecate the onerror argument in shutil.rmtree() · Issue #112645 · python/cpython
X Title: Undeprecate the onerror argument in shutil.rmtree() · Issue #112645 · python/cpython
Description: Bug report A new onexc parameter was added in shutil.rmtree() in 3.12 (see #102828). At the same time passing the onerror argument was deprecated. It creates inconvenience for code that should run on several Python versions. It forces us...
Open Graph Description: Bug report A new onexc parameter was added in shutil.rmtree() in 3.12 (see #102828). At the same time passing the onerror argument was deprecated. It creates inconvenience for code that should run ...
X Description: Bug report A new onexc parameter was added in shutil.rmtree() in 3.12 (see #102828). At the same time passing the onerror argument was deprecated. It creates inconvenience for code that should run ...
Opengraph URL: https://github.com/python/cpython/issues/112645
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Undeprecate the onerror argument in shutil.rmtree()","articleBody":"# Bug report\n\nA new `onexc` parameter was added in `shutil.rmtree()` in 3.12 (see #102828). At the same time passing the `onerror` argument was deprecated. It creates inconvenience for code that should run on several Python versions. It forces users to modify their working code to avoid deprecation warnings.\n\nI think that there was nothing wrong in `onerror`. The only advantage of `onexc` over `onerror` was that it may require to write less code in some cases, but the deprecation causes an opposite effect -- it requires to write more code.\n\nSo I think that the deprecation should be reverted.\n\n@iritkatriel\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-112659\n* gh-112665\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2023-12-03T09:35:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/112645/cpython/issues/112645"}
| 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:9abb83a1-b8b3-85a0-1e27-fbbe6531966f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDB4:388B78:2942DFD:3602A25:696B681E |
| html-safe-nonce | 5d2d3e3b98e6f6d46734c1cfdf22592230dd3ac357a00c63f5c0aa7d2805924c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREI0OjM4OEI3ODoyOTQyREZEOjM2MDJBMjU6Njk2QjY4MUUiLCJ2aXNpdG9yX2lkIjoiMTY5MjEzNzc2MTMxNDgzNjc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ad160ee9555274a13c8b39ba8b3bc3904d4d228e9515c2f831a7948e30dbbbcd |
| hovercard-subject-tag | issue:2022441303 |
| 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/112645/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2df8c23699e4d46d98b744ca88364edc7fad9c1fb975f4faf22ccf8cb1c349fa/python/cpython/issues/112645 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2df8c23699e4d46d98b744ca88364edc7fad9c1fb975f4faf22ccf8cb1c349fa/python/cpython/issues/112645 |
| og:image:alt | Bug report A new onexc parameter was added in shutil.rmtree() in 3.12 (see #102828). At the same time passing the onerror argument was deprecated. It creates inconvenience for code that should run ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width