News for hackers. Stuff that matters.
Re:Redesigning Python's named tuples by lou1306 on Friday September 01, 2017 @07:40AM (#15147559)
Typically tuples are ordered lists of values. See Codd's relational model, Linda, Erlang, etc.
Re:Redesigning Python's named tuples by coldtea on Friday September 01, 2017 @07:43AM (#15147569)
In the relational model the order shouldn't matter:

  A relation is defined as a set of n-tuples. In both mathematics and the 
  relational database model, a set is an unordered collection of unique, non-
  duplicated items, although some DBMSs impose an order to their data. In 
  mathematics, a tuple has an order, and allows for duplication. E. F. Codd 
  originally defined tuples using this mathematical definition. 

  Later, it was one of E. F. Codd's great insights that using attribute names 
  instead of an  ordering would be so much more convenient (in general) in a 
  computer language based on relations. This insight is still being used today. 
  Though the concept has changed, the name "tuple" has not.
Re:Redesigning Python's named tuples by lou1306 on Friday September 01, 2017 @08:03AM (#15147644)
I stand corrected; I was probably fooled by the naming. Still, in most contexts tuples are ordered while sets/bags are not.