Skip to content

gh-110378: Close invalid generators in contextmanager and asynccontextmanager#110499

Merged
ambv merged 1 commit intopython:mainfrom
serhiy-storchaka:test_contextmanager_trap_second_yield
Oct 10, 2023
Merged

gh-110378: Close invalid generators in contextmanager and asynccontextmanager#110499
ambv merged 1 commit intopython:mainfrom
serhiy-storchaka:test_contextmanager_trap_second_yield

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Oct 7, 2023

contextmanager and asynccontextmanager context managers now close an invalid underlying generator object that yields more then one value.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants