tuples or lists

"Martin v. Löwis" martin at v.loewis.de
Tue Mar 16 15:22:36 EST 2004


beliavsky at aol.com wrote:
> Is "use tuples instead of lists, when possible" a good rule?

The party line is: "use lists for similar items, tuples for
different items". If you come from a C++ background, tuples
are mostly used what structs are used for, and lists are used
in the std::vector context.

Regards,
Martin




More information about the Python-list mailing list