Comment #7 on issue 2406 by [email protected]: improve Tuple constructor
http://code.google.com/p/sympy/issues/detail?id=2406
@renato: If there's precedent from 'fromiter', I guess it's a better choice.
@Aaron: the convention would be changed from expr.__class__(*expr.args) to
expr.fromiter(expr.args) - there's no need to invoke the class explicitly
to call a class method. This would have one big advantage: in
expr.__class__(*iterable), iterable has to be read in full before it can be
unpacked. With fromiter, some classes could return early, without even
reading the end of the iterable.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.