SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 135 Python

bpo-12022: Change error type for bad objects in "with" and "async with" (GH-26809)

A TypeError is now raised instead of an AttributeError in
"with" and "async with" statements for objects which do not
support the context manager or asynchronous context manager
protocols correspondingly.
S
Serhiy Storchaka committed
20a88004bae8ead66a205a125e1fe979376fc3ea
Parent: 48e3a1d
Committed by GitHub <noreply@github.com> on 6/29/2021, 8:27:04 AM