MyDictTools.enterContext

MyDictTools.enterContext#

MyDictTools.enterContext(cm)#

Enters the supplied context manager.

If successful, also adds its __exit__ method as a cleanup function and returns the result of the __enter__ method.