René's URL Explorer Experiment


Title: PEP 533 – Deterministic cleanup for iterators | peps.python.org

Open Graph Title: PEP 533 – Deterministic cleanup for iterators | peps.python.org

Description: We propose to extend the iterator protocol with a new __(a)iterclose__ slot, which is called automatically on exit from (async) for loops, regardless of how they exit. This allows for convenient, deterministic cleanup of resources held by iterators with...

Open Graph Description: We propose to extend the iterator protocol with a new __(a)iterclose__ slot, which is called automatically on exit from (async) for loops, regardless of how they exit. This allows for convenient, deterministic cleanup of resources held by iterators with...

Opengraph URL: https://peps.python.org/pep-0533/

direct link

Domain: peps.python.org

color-schemelight dark
og:typewebsite
og:site_namePython Enhancement Proposals (PEPs)
og:imagehttps://peps.python.org/_static/og-image.png
og:image:altPython PEPs
og:image:width200
og:image:height200
theme-color#3776ab

Links:

Pythonhttps://www.python.org/
PEP Indexhttps://peps.python.org/
Abstracthttps://peps.python.org/533#abstract
Note on timinghttps://peps.python.org/533#note-on-timing
Background and motivationhttps://peps.python.org/533#background-and-motivation
Alternativeshttps://peps.python.org/533#alternatives
PEP 525 asyncgen hookshttps://peps.python.org/533#pep-525-asyncgen-hooks
Always inject resources, and do all cleanup at the top levelhttps://peps.python.org/533#always-inject-resources-and-do-all-cleanup-at-the-top-level
More complex variants of __(a)iterclose__https://peps.python.org/533#more-complex-variants-of-a-iterclose
Specificationhttps://peps.python.org/533#specification
Guiding principleshttps://peps.python.org/533#guiding-principles
Changes to iterationhttps://peps.python.org/533#changes-to-iteration
Changes to async iterationhttps://peps.python.org/533#changes-to-async-iteration
Modifications to basic iterator typeshttps://peps.python.org/533#modifications-to-basic-iterator-types
New convenience functionshttps://peps.python.org/533#new-convenience-functions
__iterclose__ implementations for iterator wrappershttps://peps.python.org/533#iterclose-implementations-for-iterator-wrappers
Example / Rationalehttps://peps.python.org/533#example-rationale
Transition planhttps://peps.python.org/533#transition-plan
Acknowledgementshttps://peps.python.org/533#acknowledgements
Copyrighthttps://peps.python.org/533#copyright
Abstracthttps://peps.python.org/533#abstract
Note on timinghttps://peps.python.org/533#note-on-timing
Background and motivationhttps://peps.python.org/533#background-and-motivation
WSGI spechttps://peps.python.org/pep-0333/
frequent source of bugshttp://blog.dscpl.com.au/2012/10/obligations-for-calling-close-on.html
PEP 342https://peps.python.org/pep-0342/
PEP 325https://peps.python.org/pep-0325/
PEP 525https://peps.python.org/pep-0525/
PEP 525https://peps.python.org/pep-0525/
Alternativeshttps://peps.python.org/533#alternatives
PEP 525 asyncgen hookshttps://peps.python.org/533#pep-525-asyncgen-hooks
PEP 525 proposes a set of global thread-local hookshttps://peps.python.org/pep-0525/#finalization
PEP 525https://peps.python.org/pep-0525/
PEP 525https://peps.python.org/pep-0525/
specifically to the async generator concrete typehttps://mail.python.org/pipermail/python-dev/2016-September/146129.html
Always inject resources, and do all cleanup at the top levelhttps://peps.python.org/533#always-inject-resources-and-do-all-cleanup-at-the-top-level
More complex variants of __(a)iterclose__https://peps.python.org/533#more-complex-variants-of-a-iterclose
Specificationhttps://peps.python.org/533#specification
Guiding principleshttps://peps.python.org/533#guiding-principles
Changes to iterationhttps://peps.python.org/533#changes-to-iteration
Changes to async iterationhttps://peps.python.org/533#changes-to-async-iteration
Modifications to basic iterator typeshttps://peps.python.org/533#modifications-to-basic-iterator-types
New convenience functionshttps://peps.python.org/533#new-convenience-functions
__iterclose__ implementations for iterator wrappershttps://peps.python.org/533#iterclose-implementations-for-iterator-wrappers
itertools.teehttps://docs.python.org/3/library/itertools.html#itertools.tee
Example / Rationalehttps://peps.python.org/533#example-rationale
Transition planhttps://peps.python.org/533#transition-plan
PEP 525https://peps.python.org/pep-0525/
Acknowledgementshttps://peps.python.org/533#acknowledgements
Copyrighthttps://peps.python.org/533#copyright
Abstracthttps://peps.python.org/533#abstract
Note on timinghttps://peps.python.org/533#note-on-timing
Background and motivationhttps://peps.python.org/533#background-and-motivation
Alternativeshttps://peps.python.org/533#alternatives
PEP 525 asyncgen hookshttps://peps.python.org/533#pep-525-asyncgen-hooks
Always inject resources, and do all cleanup at the top levelhttps://peps.python.org/533#always-inject-resources-and-do-all-cleanup-at-the-top-level
More complex variants of __(a)iterclose__https://peps.python.org/533#more-complex-variants-of-a-iterclose
Specificationhttps://peps.python.org/533#specification
Guiding principleshttps://peps.python.org/533#guiding-principles
Changes to iterationhttps://peps.python.org/533#changes-to-iteration
Changes to async iterationhttps://peps.python.org/533#changes-to-async-iteration
Modifications to basic iterator typeshttps://peps.python.org/533#modifications-to-basic-iterator-types
New convenience functionshttps://peps.python.org/533#new-convenience-functions
__iterclose__ implementations for iterator wrappershttps://peps.python.org/533#iterclose-implementations-for-iterator-wrappers
Example / Rationalehttps://peps.python.org/533#example-rationale
Transition planhttps://peps.python.org/533#transition-plan
Acknowledgementshttps://peps.python.org/533#acknowledgements
Copyrighthttps://peps.python.org/533#copyright
Page Source (GitHub)https://github.com/python/peps/blob/main/peps/pep-0533.rst?plain=1
https://github.com/python/peps/blob/main/peps/pep-0533.rsthttps://github.com/python/peps/blob/main/peps/pep-0533.rst
2025-02-01 08:59:27 UTChttps://github.com/python/peps/commits/main/peps/pep-0533.rst

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.