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 retry function to Python standard library #126927

Closed
jude253 opened this issue Nov 17, 2024 · 1 comment
Closed

Add retry function to Python standard library #126927

jude253 opened this issue Nov 17, 2024 · 1 comment
Labels
type-feature A feature request or enhancement

Comments

@jude253
Copy link

jude253 commented Nov 17, 2024

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

@jude253 jude253 added the type-feature A feature request or enhancement label Nov 17, 2024
@hugovk
Copy link
Member

hugovk commented Nov 17, 2024

Major feature proposals should be discussed on Discourse before opening a GitHub issue. Please open a topic over there and we can re-open this when it's clear there's support for this idea. Thank you.

@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants