I think that we should prefer tuples to lists when that is appropriate, 
lists to tuples when that is appropriate. Python has both types for good 
reasons, I think, and I don't see why we should globally recommend one over 
the other.

On Wednesday, July 14, 2021 at 7:21:48 PM UTC-7 Kwankyu Lee wrote:

> While we are at
>
> https://trac.sagemath.org/ticket/32200
>
> which is really about standardizing types of return values. How about 
> including recommendation to prefer `tuple` to `list`? Of course this is 
> only to apply to functions and methods for users. I think it is good to 
> have a default type so that users do not need to check for any reason 
> whether the return value is a tuple or a list.
>
> I dimly remember there was a  discussion about list vs tuple long time 
> ago, but with no conclusion. I don't intend to provoke another discussion. 
> But if we now have reached a consensus on this matter, then we can add it 
> to the ticket.  
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/17671f54-054d-4fa0-a900-e998515552cen%40googlegroups.com.

Reply via email to