Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
A newonexc parameter was added inshutil.rmtree() in 3.12 (see#102828). At the same time passing theonerror 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.
I think that there was nothing wrong inonerror. The only advantage ofonexc overonerror 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.
So I think that the deprecation should be reverted.