Comment #13 on issue 1919 by mattpap: unify behavior of var() and symbols()
http://code.google.com/p/sympy/issues/detail?id=1919

Did you give any consideration to the syntax var('a1:3') -> a1, a2, a3?

Yes:

In [1]: var('a0:3')
Out[1]: (a₀, a₁, a₂)

In [2]: var('a3:0')
Out[2]: ()

In [3]: var('a:f')
Out[3]: (a, b, c, d, e, f)

In [4]: var('f:a')
Out[4]: ()

Note that range syntax mimics Python's range(), so upper limit is excluded from the resulting sequence. On the other hand, lexicographic syntax is inclusive (this way it makes more sense).

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