SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

gh-144386: Add support for descriptors in ExitStack and AsyncExitStack (#144420)

__enter__(), __exit__(), __aenter__(), and __aexit__() can now be
arbitrary descriptors, not only normal methods, for consistency with the
"with" and "async with" statements.
S
Serhiy Storchaka committed
f73d2e70037ea0c76d03487a71790734344aa080
Parent: 34e5a63
Committed by GitHub <noreply@github.com> on 2/4/2026, 11:20:18 AM