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.
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?
Activity
pythongh-102828: add onexc arg to shutil.rmtree. Deprecate onerror.
gh-102828: add onexc arg to shutil.rmtree. Deprecate onerror. (#102829)
pythongh-102828: fix test failure (add missing skip instructions)
gh-102828: fix test failure (add missing skip instructions) (#102835)
pythongh-102828: add deprecation warning for onerror arg to shutil.rm…
gh-102828: emit deprecation warning for onerror arg to shutil.rmtree (#…
pythongh-102828: add onexc arg to shutil.rmtree. Deprecate onerror. (p…
pythongh-102828: fix test failure (add missing skip instructions) (py…
pythongh-102828: emit deprecation warning for onerror arg to shutil.r…
gh-102828: set stacklevel on deprecation warning (#103422)
pythongh-102828: add onexc arg to shutil.rmtree. Deprecate onerror. (p…
pythongh-102828: fix test failure (add missing skip instructions) (py…
pythongh-102828: emit deprecation warning for onerror arg to shutil.r…
5 remaining items
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
tests: Address deprecation warning in shutil.rmtree(onerror=...)
kfsone commented on Jul 1, 2024
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?
iritkatriel commented on Jul 1, 2024
Nobody indicated any urgency. You made that up just so you can entertain us with your witty insult.