Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythoncustom context managersSingle-choice MCQ

What is the observable effect of this custom context manager?

class Suppressor: def __enter__(self): return self def __exit__(self, exc_type, exc, tb): return True with Suppressor(): raise ValueError("boom") print("reached")