Re: [sage-devel] Re: Library code returning int value

2021-07-14 Thread John H Palmieri
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

Re: [sage-devel] Re: Library code returning int value

2021-07-14 Thread Kwankyu Lee
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