Message349223
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:36 | Marco Sulla | set | recipients:
+ Marco Sulla |
2019-08-08 08:35:36 | Marco Sulla | set | messageid: <1565253336.61.0.225972441041.issue37791@roundup.psfhosted.org> |
2019-08-08 08:35:36 | Marco Sulla | link | issue37791 messages |
2019-08-08 08:35:36 | Marco Sulla | create | |
|