Variable defined with with-statement available outside of with-block?

Yes, the context manager will be available outside the with statement and that is not implementation or version dependent. with statements do not create a new execution scope.

Leave a Comment