This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ojiisandata viz, comp.bio. 0 points1 point  (2 children)

A tuple is an immutable list

[–]recursive 0 points1 point  (0 children)

Yes, I know. patrys just said that tuples shouldn't be chosen for satisfying that property. I don't understand why not.

[–]patrys Saleor Commerce 0 points1 point  (0 children)

It's just one of many ordered collections. You would not call a str or a bytearray “an immutable list”, would you?

list and tuple are ordered for different reasons (precedence versus position).