Re: [sympy] ArrayComprehension or List

2019-06-04 Thread Oscar Benjamin
In normal Python the main purpose of list is to be mutable. When you want an immutable list you can use tuple. If SymPy had List would it be mutable? If so then it couldn't be a Basic subclass. If not what purpose would it serve? On Tue, 4 Jun 2019 at 04:46, Chris Smith wrote: > > From

[sympy] ArrayComprehension or List

2019-06-03 Thread Gagandeep Singh (B17CS021)
I support `List` because it's intuitive to me have an analogous symbolic unevaluated form of `list`. There are similar containers like `Dict` similar `dict`. This argument is based on intuition. The point raised by Francesco is also valid and should be taken into consideration. One solution

[sympy] ArrayComprehension or List

2019-06-03 Thread Chris Smith
>From discussion at #16926 where I suggest that perhaps we should be naming ArrayComprehension as List and it was said, > [ArrayComprehension] is supposed to be a multidimensional list comprehension It looks like an unevaluated List to me: `List(i +