> > And Øyvind, I don't think it's a bug that collect doesn't respect > Wild. It's just not implemented.
Yeah, that was kind of what I meant :-) > Someone suggested that subs might do > substitutions using Wilds and I put that work into t2. And this thread > provided a test case for it, but doing expr.subs(W**(n+1), u*W**(n+1), > wild=1) failed because Idx (as it is being traversed by subs) doesn't > have methods that normal Basic objects do, e.g. as_base_exp(), so it > failed. > But Idx is a subclass of Basic, and there are tests of .subs() for both Idx, Indexed and IndexedElement, so it does work for simple cases. However, it appears that .as_base_exp() is defined in Expr, not Basic. If you implement features of subs() that depend on .as_base_exp(), maybe those things should go into a Expr.subs()? Øyvind -- 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.