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

Ahh, never thought about the 2.4 issue. That's a good point -- I'll hold off implementing this until we drop the requirement.

As for 'with context as target', I don't quite see how that could be used. You could just as easily just add the 'context' to the calls to ask as the assumption context to use by default.

The 'with assumption_context' has the advantage that we can behind the scenes add the assumptions to the global_assumptions context, and then remove them when we exit the with block. That way nothing inside will need to mention the 'assumption_context'.

--
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