Status: Accepted
Owner: christian.muise
Labels: Type-Enhancement Priority-Medium Assumptions

New issue 2024 by christian.muise: Implement 'with' statement for assumptions.
http://code.google.com/p/sympy/issues/detail?id=2024

It would be a nice touch to have the following code work:

with assumption_context:
    # Do something
    ...

Further, if Assume sub-classed AssumptionContext, we could conveniently write things like:

with Assume(x, Q.integer):
    # Do something
    ...

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to