-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
add option for error callback of to shutil.rmtree to accept exception rather than exc_info #102828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think it is too early to deprecate |
What is the urgency in removing the 'onerror' parameter? A concern about shutil.rmtree performance of accepting both arguments? Or is it just part of the core-python lemming-suicide pact to drive users away by making python as consistently self-incompatible as possible? |
Nobody indicated any urgency. You made that up just so you can entertain us with your witty insult. |
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.Linked PRs
The text was updated successfully, but these errors were encountered: