Author Marco Sulla
Recipients Marco Sulla
Date 2019-08-08.08:35:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I propose to mark as deprecated the parameters `ignore_errors` and `onerror` of `shutil.rmtree()`, and raise a warning if used.

The reason is I feel them unpythonic. For emulating `ignore_errors=True`, the code can be written simply with a `try-except` that passes by default all `OSError`s . The `ignore_errors=True, onerror=myHandler` case can written simply with a `try-except` that handles `OSError`s. And in the handle can be code or a call to an handler with the same paramaters `myHandler` accept.
Date User Action Args
2019-08-08 08:35:36Marco Sullasetrecipients: + Marco Sulla
2019-08-08 08:35:36Marco Sullasetmessageid: <>
2019-08-08 08:35:36Marco Sullalinkissue37791 messages
2019-08-08 08:35:36Marco Sullacreate