| commit | 20a88004bae8ead66a205a125e1fe979376fc3ea | [log] [tgz] |
|---|---|---|
| author | Serhiy Storchaka <storchaka@gmail.com> | Tue Jun 29 11:27:04 2021 +0300 |
| committer | GitHub <noreply@github.com> | Tue Jun 29 11:27:04 2021 +0300 |
| tree | 6b8007ba8c981cfdb52cc0a674e0491588ab50e0 | |
| parent | 48e3a1d95aee013974121fcafe19816c0e9a41da [diff] |
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.