>
> Is there any reason why Add couldn't be just as fast for an iterator, i.e., 
> suck out all the terms before flattening them?
>
> I agree that it should work either way, though.  Actually, I don't see why 
> Add([…]) doesn't work either.  

There is a lot less code to test and maintain if have one way to
provide the input. Add wants items and you can give them as Add(a, b)
or Add(*[a, b]) or Add(*list(generator)) -- you let the user maintain
their own code/preferences. If you want to allow Add(a, b) or Add([a,
b]) or Add(generator) then your overhead at the beginning of the
routine gets bloated. And that slows things down.

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