Content-Length: 279723 | pFad | https://github.com/python/cpython/issues/102828

3A add option for error callback of to shutil.rmtree to accept exception rather than exc_info · Issue #102828 · python/cpython · GitHub
Skip to content

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

@iritkatriel

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

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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/102828

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy