Skip to content

Handling a function with the contextlib.contextmanager decorator that does not implement __enter__ or __exit__ ? #885

Answered by hauntsaninja
HunterAP23 asked this question in Q&A
Discussion options

You must be logged in to vote

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@HunterAP23
Comment options

@HunterAP23
Comment options

@JelleZijlstra
Comment options

@sobolevn
Comment options

Answer selected by hauntsaninja
Comment options

You must be logged in to vote
2 replies
@hauntsaninja
Comment options

@HunterAP23
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants