Comment #12 on issue 2026 by [email protected]: Exact, algebraic, and integer_power substitution
http://code.google.com/p/sympy/issues/detail?id=2026

Actually, if you supply the right dict-like object, it can do everything the other replace() does. For instance, something like:

class Replace(object):
    ....
    def __getitem__(self, expr):
        match = self.pattern.matches(expr)
        if match is not None:
            return self.target.replace(match)
        else:
            raise KeyError

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

Reply via email to