Skip to content

add option for error callback of to shutil.rmtree to accept exception rather than exc_info #102828

Description

@iritkatriel

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

Activity

  1. added a commit that references this issue on Mar 19, 2023
  2. added 5 commits that reference this issue on Mar 19, 2023
  3. added 3 commits that reference this issue on Mar 27, 2023
  4. added a commit that references this issue on Apr 11, 2023
  5. added 3 commits that reference this issue on Apr 11, 2023
  6. 5 remaining items

  7. kfsone commented on Jul 1, 2024

    @kfsone

    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?

  8. iritkatriel commented on Jul 1, 2024

    @iritkatriel
    MemberAuthor

    What is the urgency in removing the 'onerror' parameter?

    Nobody indicated any urgency. You made that up just so you can entertain us with your witty insult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions