ma., 20.09.2010 kl. 22.06 -0600, skrev Aaron S. Meurer:
> Yeah, see one of my previous emails on this thread.  I was doing something 
> stupid, and so it didn't work when I tried it.  The problem now is with 
> 
> >>> m.args[-1] == n
> False
> 

A workaround is to use :

>>> m.args[-1] == Idx(n)
True

There is actually also a test for this behaviour.  But it was a
horrible design decision, hence issue 2059.

Øyvind

> Aaron Meurer
> 
> On Sep 20, 2010, at 10:04 PM, smichr wrote:
> 
> > 
> > 
> > On Sep 19, 10:20 pm, "Aaron S. Meurer" <asmeu...@gmail.com> wrote:
> >> So given Chris's tip in issue 2058 (which flew over my head the first time 
> >> for some reason), I think I might have this figured out, except for one 
> >> thing.  Given M(i, j, n), how to I get the third argument, n?  I tried 
> >> M(i, j, n)[2] and M(i, j, n).args, but neither works.
> >> 
> > 
> >>>> m = M(i,j,n)
> >>>> m.args
> > (M, i, j, n)
> >>>> m.args[-1]
> > n
> 

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

Reply via email to