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.Dismiss alert
Add an official example that uses SB() without the context manager with block.
Multiple people have now asked about how to use the SB() context manager without the with block.
This is mentioned in the Python documentation, but not directly here, so I'll add an example for it.
This involves calling the built-in __enter__() and __exit__() methods to simulate the start and end of the with block.