class A: O = 0 def __enter__(self): print(O) pass def __exit__(self, *args): pass def name(params1): with params1() as x: print() name(A)
To embed this project on your website, copy the following code and paste it into your website's HTML: