The discussion seems to have quieted down for now, but there isn’t a clear consensus so I’d like to have a poll about the options raised so far. Please select what you think is best (and feel free to continue discussing the options below).
- Do nothing, exit takes (typ, exc, tb) and sys.exc_info() is not deprecated.
- Submit PEP 707 to the steering council for consideration for 3.12.
- Add a leave(exc) api instead of PEP 707 instrospection (needs a PEP, may still be possible in 3.12).
- Design context managers from scratch along the lines of Serhiy’s proposal above (probably for 3.13).
0 voters