[Python-Dev] PEP 8: Lists/tuples
Guido van Rossum
guido@python.org
Sun, 16 Jun 2002 20:23:58 -0400
> I don't really want to open a can of worms here, but as I'm finishing up
> my OSCON slides, I remembered a conversation earlier where Guido said
> that tuples should be used for heterogeneous items (i.e. lightweight
> structs) while lists should be used for homogeneous items.
>
> Should this preference be enshrined in PEP 8?
Yes.
> (I'm -1 myself, but I'd like to know what to tell my class.)
Like it or not, that's what tuples are for. :-)
--Guido van Rossum (home page: http://www.python.org/~guido/)