much better!


On Tue, Jan 7, 2014 at 11:42 AM, zanzibar7 <notifications@github.com> wrote:

> In sympy/core/symbol.py:
>
> >      >>> A = WildFunction('A')
> >      >>> A.match(a)
> >      {a_: A_}
> > +
> > +    Tips
> > +    ====
> > +
> > +    When using Wild, be sure to use the exclude keyword to make
> > +    the pattern deterministic.
> > +
>
> Was just adapting the content @asmeurer <https://github.com/asmeurer>pointed me to. But your example doesn't show how exclude changes the match.
> How about
>
> >>> a,b=symbols('a b',cls=Wild)
> >>> (2*x**3*y).match(a*b)
> {a_: 2*y, b_: x**3}
> >>> a=Wild('a',exclude=[x,y])
> >>> (2*x**3*y).match(a*b)
> {a_: 2, b_: x**3*y}
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/sympy/sympy/pull/2636/files#r8700210>
> .
>