Comment #1 on issue 2024 by asmeurer: Implement 'with' statement for
assumptions.
http://code.google.com/p/sympy/issues/detail?id=2024
The only problem is that with doesn't work in Python 2.4, so we will either
have to not use it in library code and test it using exec, or else drop
support. And for 2.5, we have to import it from __future__, but that's
fine (we already do that with division anyway).
You can also do
with context as target:
and the return value of __enter__() will be assigned to target (see
http://docs.python.org/reference/compound_stmts.html#with, #4). I wonder
if/how that should be used in this case.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.