Skip to content

Add retry function to Python standard library #126927

@jude253

Description

@jude253

Feature or enhancement

Proposal:

I often find myself adding retry functionality in many different places. I think it would be super helpful if there was retry functionality in the python standard library by default. I think this is super helpful with API calls.

Ideally, it would have nice and easy syntax with good enough default values that can be further configured if needed.

Example:

@retry
def user_function(arg1, arg2, kwarg='something'):
    pass

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

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