For all the reasons I wrote up in my post
[https://adamj.eu/tech/2019/07/05/tuples-versus-lists-in-python/ tuples
versus lists] I think it would be good to convert all such examples to
lists. This would make the documentation more beginner-friendly and less
prone to propagating these mistakes.
There's also a general guideline I saw (from Guido maybe?) that tuples are
intended for fixed-length records where the position is part of the
meaning - e.g. `(x, y)` coordinates - and lists are for variable-length
collections of homogenous-meaning items. So all our variable-length tuples
would be better as lists under this guideline.
--
Ticket URL: <https://code.djangoproject.com/ticket/32280>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
Closing as duplicate of #30947. I think it will be good to keep all
related cleanups in a single ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/32280#comment:1>
Comment (by Adam Johnson):
Thanks for knowing about/finding the dupe!
--
Ticket URL: <https://code.djangoproject.com/ticket/32280#comment:2>