Status: Accepted
Owner: asmeurer
Labels: Type-Enhancement Priority-Medium

New issue 2497 by asmeurer: Make Tuple do sequence repetition
http://code.google.com/p/sympy/issues/detail?id=2497

In [16]: Tuple(1, 2, 3)*2
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in <module>()

TypeError: unsupported operand type(s) for *: 'Tuple' and 'int'

In [17]: Tuple(1, 2, 3)*S(2)
Out[17]: 2â‹…Tuple(1, 2, 3)

I would have expected both to give Tuple(1, 2, 3, 1, 2, 3), just like (1, 2, 3)*2.

It's also a little disturbing that you can create a symbolic expression with a Tuple in it.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to