X Tutup
The Wayback Machine - https://web.archive.org/web/20240412223246/https://github.com/python/cpython/issues/81483
Skip to content
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

Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions #81483

Closed
websurfer5 mannequin opened this issue Jun 16, 2019 · 3 comments
Closed
Labels
3.13 new features, bugs and security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@websurfer5
Copy link
Mannequin

websurfer5 mannequin commented Jun 16, 2019

BPO 37302
Nosy @pfmoore, @giampaolo, @tjguk, @tarekziade, @pkch, @zware, @serhiy-storchaka, @zooba, @MojoVampire, @websurfer5
PRs
  • gh-81483: Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions #14292
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2019-06-16.04:46:07.955>
    labels = ['3.7', '3.8', 'type-feature', 'library', '3.9']
    title = 'Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions'
    updated_at = <Date 2019-06-22.18:32:55.570>
    user = 'https://github.com/websurfer5'

    bugs.python.org fields:

    activity = <Date 2019-06-22.18:32:55.570>
    actor = 'Jeffrey.Kintscher'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-06-16.04:46:07.955>
    creator = 'Jeffrey.Kintscher'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37302
    keywords = ['patch']
    message_count = 2.0
    messages = ['345726', '346243']
    nosy_count = 11.0
    nosy_names = ['paul.moore', 'giampaolo.rodola', 'tim.golden', 'tarek', 'max', 'zach.ware', 'serhiy.storchaka', 'riccardomurri', 'steve.dower', 'josh.r', 'Jeffrey.Kintscher']
    pr_nums = ['14292']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue37302'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    @websurfer5
    Copy link
    Mannequin Author

    websurfer5 mannequin commented Jun 16, 2019

    Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions so that the caller can perform special handling for directory items that it can't automatically delete. The caller created the undeletable directory entries, so it is reasonable to believe the caller may know how to unmake what they made.

    This enhancement is needed to provide the desired behavior described in issue #74168 (bpo-29982) and issue #80603 (bpo-36422).

    @websurfer5
    Copy link
    Mannequin Author

    websurfer5 mannequin commented Jun 21, 2019

    The PR is ready for review.

    @websurfer5 websurfer5 mannequin added type-feature A feature request or enhancement 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir labels Jun 21, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @iritkatriel iritkatriel added 3.12 bugs and security fixes and removed 3.9 only security fixes 3.8 only security fixes 3.7 (EOL) end of life labels Apr 4, 2023
    @erlend-aasland erlend-aasland added 3.13 new features, bugs and security fixes and removed 3.12 bugs and security fixes labels Jan 5, 2024
    @erlend-aasland
    Copy link
    Contributor

    This feature request was rejected by @giampaolo in #80603 (comment).

    @erlend-aasland erlend-aasland closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.13 new features, bugs and security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    Status: Done
    Development

    No branches or pull requests

    2 participants
    X Tutup