Hello,
as a user, I would like to always have one list, the list [] when there is
no solution. This allows to simply iterate over each solution and then acts
on it, where as for the moment I must take care of the type of the answer.
Not very simple, isn't it ?

Christophe.

2012/6/2 [email protected] <[email protected]>

> Most (all?) of the solvers implemented in sympy return a list of
> solutions if there is more than one, and the solution itself (not in a
> list) if it is the only in existence. (And usually an empty list
> (sometimes None) if there are no solutions).
>
> I dislike this strongly. I would like to know if there are similar
> sentiments in the community. If there are none I will agree with the
> consensus, however if there are I would like to proceed on making the
> return values more consistent (always lists).
>
> I know that there were already discussions about making the outputs
> more consistent (dicts, nested lists, Eq instances, etc). I am not
> asking for this. I am asking just for lists in cases where there is
> only one solution.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
>

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

Reply via email to