◐ Shell
clean mode source ↗

bpo-44471: Change error type for bad objects in ExitStack.enter_context() by serhiy-storchaka · Pull Request #26820 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

…xt()

A TypeError is now raised instead of an AttributeError in
ExitStack.enter_context() and AsyncExitStack.enter_async_context()
for objects which do not support the context manager or
asynchronous context manager protocols correspondingly.

iritkatriel

iritkatriel

iritkatriel

Labels