Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add __enter__ and __exit__ methods to Solver class (#7025)
To enable the usage of the with statement for the Solver class instances, this commit adds __enter__ and __exit__ methods. The with statement should offer a more concise and safer alternative to explicit usage of push() and pop() methods.
- Loading branch information