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/
Domain: peps.python.org
| color-scheme | light dark |
| og:type | website |
| og:site_name | Python Enhancement Proposals (PEPs) |
| og:image | https://peps.python.org/_static/og-image.png |
| og:image:alt | Python PEPs |
| og:image:width | 200 |
| og:image:height | 200 |
| theme-color | #3776ab |
Links:
Viewport: width=device-width, initial-scale=1.0