You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
This automatically has exception handling and automatically closes the file after leaving the scope. All that is needed is to implement __enter__() and __exit__() functions.
The text was updated successfully, but these errors were encountered:
I think cdms should support context management with the
with
keyword. So the idea is to have something similar to how files are handled in Python:This automatically has exception handling and automatically closes the file after leaving the scope. All that is needed is to implement
__enter__()
and__exit__()
functions.The text was updated successfully, but these errors were encountered: