Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add __enter__ and __exit__ methods to Solver class in Python API #7025

Merged
merged 1 commit into from
Nov 30, 2023

Commits on Nov 29, 2023

  1. Add __enter__ and __exit__ methods to Solver class

    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.
    alperaltuntas committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    0d1e9c6 View commit details
    Browse the repository at this point in the history