Updates:
        Status: NeedsDecision
        Labels: Milestone-Release0.7.0

Comment #1 on issue 2406 by [email protected]: improve Tuple constructor
http://code.google.com/p/sympy/issues/detail?id=2406

We should try to resolve this before the release, because it would be too much of a compatibility break if we do it afterwards.

+1 on your first item. Tuple(x, 1).subs(x, 0) should just work, and instances of Basic are supposed to have only instances of Basic in their .args.

The second point was already discussed (in issue 1920 and elsewhere, IIRC, but I can't find it ATM). The main problem is that instances of Basic are expected to obey expr.__class__(*expr.args) == expr, and your suggestion would break it. My counter-proposition would be to add a from_iter() classmethod to Basic that does cls.from_iter(seq) := cls(*seq) and sympify lists and tuples as Tuples, so that S(some_list) == Tuple.from_iter(some_list).

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

Reply via email to