On Sun, Oct 17, 2021 at 4:38 PM Steven D'Aprano <st...@pearwood.info> wrote:
> Right-o, the old "heterogeneous tuples versus homogeneous lists" > distinction, I remember that from the old 1.5 days. I haven't heard it > mentioned for a long time! > You must not have looked at type annotations then. :-) Type annotations legitimize this, by favoring the syntax list[int] for a homogeneous list versus tuple[int, str, bool] for a heterogeneous tuple. (There's a syntax for a homogeneous tuple too, but it's intentionally slightly longer.) So this rule of thumb is definitely not dead (as you seemed to imply). -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/E5XVQE4WZJGLIQGLPOHU64T4YQZUC4XG/ Code of Conduct: http://python.org/psf/codeofconduct/