Great. On Sat, Feb 20, 2010 at 3:11 PM, Øyvind Jensen <jensen.oyv...@gmail.com>wrote:
> --- > sympy/physics/secondquant.py | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/sympy/physics/secondquant.py b/sympy/physics/secondquant.py > index 858c222..6a5fa60 100644 > --- a/sympy/physics/secondquant.py > +++ b/sympy/physics/secondquant.py > @@ -2666,8 +2666,10 @@ def arg_iterator(seq): > > for req, dummylist in cases: > if isinstance(expr,Add): > - new_dummies = dummylist > - expr = (Add(*[_substitute(term, new_dummies, arg_iterator, > **req) for term in expr.args])) > + expr = (Add(*[_substitute(term, dummylist, arg_iterator, > **req) for term in expr.args])) > + else: > + expr = _substitute(expr, dummylist, arg_iterator, **req) > + > > return expr > > -- > 1.6.5 > > -- > You received this message because you are subscribed to the Google Groups > "sympy-patches" group. > To post to this group, send email to sympy-patc...@googlegroups.com. > To unsubscribe from this group, send email to > sympy-patches+unsubscr...@googlegroups.com<sympy-patches%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/sympy-patches?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send email to sympy-patc...@googlegroups.com. To unsubscribe from this group, send email to sympy-patches+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-patches?hl=en.