Updates:
Status: Fixed
Comment #9 on issue 1838 by smi...@gmail.com: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838
This appears to be in
[9]*S(5)
[9, 9, 9, 9, 9]
S(4)*[3]
[3, 3, 3, 3]
--
You received this message because you are
Updates:
Blockedon: 2125
Comment #8 on issue 1838 by asmeurer: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838
(No comment was entered for this change.)
--
You received this message because you are subscribed to the Google Groups
sympy-issues group.
Updates:
Labels: asmeurer
Comment #7 on issue 1838 by asmeurer: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838
(No comment was entered for this change.)
--
You received this message because you are subscribed to the Google Groups
sympy-issues
Comment #6 on issue 1838 by Vinzent.Steinberg: Add support for [0]*S(5),
etc.
http://code.google.com/p/sympy/issues/detail?id=1838
I'm not sure whether we should emulate Python's int here. Anyone who needs
it can use
int(S(5)) * [0].
--
You received this message because you are listed in
Comment #1 on issue 1838 by smichr: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838
This works in python from the left or right.
2*[1,2,3]
[1, 2, 3, 1, 2, 3]
[1,2,3]*2
[1, 2, 3, 1, 2, 3]
2*'o'
'oo'
For sympy, however, we might want to override that
Comment #3 on issue 1838 by asmeurer: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838
The motivation was this conversation on IRC:
xvedejas joined the chat room.
[11:43am] xvedejas: can anyone here help me with sympy?
[11:43am] xvedejas: it seems to have
Comment #4 on issue 1838 by smichr: Add support for [0]*S(5), etc.
http://code.google.com/p/sympy/issues/detail?id=1838
In objection to my comment, we could reserve one of the sides (preferrably
right) for
the normal scalar behavior of python so [0]*S(2) would give [0, 0] and if
someone
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,