With Legacy Resources, it was possible to use them...
# ask-community
f
With Legacy Resources, it was possible to use them as context manager (like so). Is there a way to do that with the new pythonic Resources? A natural and pythonic solution would be for the user to define
__enter__
and
__exit__
methods (like so) in their Resource class... Has this been considered? Thanks!