My vote is for parentheses. The double parentheses idea is interesting. I would have just used \(\), like in regular expressions.
Aaron Meurer On Feb 19, 2013, at 4:43 AM, smichr <[email protected]> wrote: In https://github.com/sympy/sympy/pull/1738 there is work and discussion related to how symbols might recognize multiple ranges like >>> symbols('a:b2:4') # desired to give a2, a3, b2, b3 (a:b2, a:b3) Although that one is unambigous, there is the question of how to delimit contiguous numeric ranges like 1:31:4. To recognize multiple ranges is already going to break compatibility since, as the above example shows, recognizing more than one range will give a different output. So two quesions: 1) should we do this or leave fancy symbol making to the user via [Symbol(%s) % names]? 2) if we break backwards compatibility, how should ranges be delimited? Options considered so far a) parentheses with doubled parentheses used to indicate literal, e.g. x(1:3) -> x1, x2 while x((1:3)) -> x(1), x(2) b) a backslash e.g. x1:3\\3:4 -> x13, x23 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
