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

New issue 1838 by asmeurer: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838

User xvedejas on IRC showed me a feature of Python that I did not know about. [0]*5 gives [0, 0, 0, 0, 0]. Unfortunately, [0]*S(5) does not work out of the box, so an override in Basic.__mul__ and
Basic.__rmul__ is necessary.

See http://github.com/asmeurer/sympy/tree/list-int-mul.

This also works with tuples and strings.

Note, I applied this branch on top of the one from issue 1828 so I could test it in Python2.4/2.5, but it does not require it (other than in the sense that sympy does not work at all in Python2.4/2.5
without the fix at that issue).

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@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