Which module provides the @contextmanager decorator in Python?
Correct answer
C. contextlib
C. contextlib
contextlib.contextmanager turns a generator into a context manager.
Asked in: Python Interview Advanced Python
https://docs.python.org/3/library/index.htmlNot sure why the answer is C? Ask here and get an explanation.