Title: add option for error callback of to shutil.rmtree to accept exception rather than exc_info · Issue #102828 · python/cpython · GitHub
Open Graph Title: add option for error callback of to shutil.rmtree to accept exception rather than exc_info · Issue #102828 · python/cpython
X Title: add option for error callback of to shutil.rmtree to accept exception rather than exc_info · Issue #102828 · python/cpython
Description: shutil.rmtree accepts as onerror a callback to should expect an exc_info tuple. To move off this, I will add a new kwarg "onexc" which should expect just an exception object. onerror will continue to work for now, but be deprecated. Link...
Open Graph Description: shutil.rmtree accepts as onerror a callback to should expect an exc_info tuple. To move off this, I will add a new kwarg "onexc" which should expect just an exception object. onerror will continue ...
X Description: shutil.rmtree accepts as onerror a callback to should expect an exc_info tuple. To move off this, I will add a new kwarg "onexc" which should expect just an exception object. onerror will...
Opengraph URL: https://github.com/python/cpython/issues/102828
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add option for error callback of to shutil.rmtree to accept exception rather than exc_info","articleBody":"\r\nshutil.rmtree accepts as ``onerror`` a callback to should expect an exc_info tuple. To move off this, I will add a new kwarg \"onexc\" which should expect just an exception object. ``onerror`` will continue to work for now, but be deprecated. \r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102829\n* gh-102835\n* gh-102850\n* gh-103422\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/iritkatriel","@type":"Person","name":"iritkatriel"},"datePublished":"2023-03-19T15:28:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/102828/cpython/issues/102828"}
| 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:0a679fe6-c163-b197-5585-533c3e0efd01 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B0C:564B0:15053B8:1D9A566:69691B6E |
| html-safe-nonce | 37fa055d00a02036dd129bc95323e501e5d5a4640cd24a13bb28d2ad0eeceaa4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjBDOjU2NEIwOjE1MDUzQjg6MUQ5QTU2Njo2OTY5MUI2RSIsInZpc2l0b3JfaWQiOiIzODE3Mzc3MDg3NzU1OTgzNzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 31474014f7311d69868e6333260f1f4469d663ba47c5a55a3ed430eaed2b3baf |
| hovercard-subject-tag | issue:1630988393 |
| 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/102828/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb6985d76d75cba1153b0660a417bee3c6aaad0a173e54aee33670620925f570/python/cpython/issues/102828 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb6985d76d75cba1153b0660a417bee3c6aaad0a173e54aee33670620925f570/python/cpython/issues/102828 |
| og:image:alt | shutil.rmtree accepts as onerror a callback to should expect an exc_info tuple. To move off this, I will add a new kwarg "onexc" which should expect just an exception object. onerror will continue ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iritkatriel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e60568924309a021b51adabdce15c2a2f285b556f3130d1a2fa2a5bce11c55f |
| 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 | dd206f7ed6207863172be4a783826e86bd2375c3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width