Python

4 thoughts
last posted Sept. 24, 2016, 8:46 a.m.
0

Convert a tuple to a named tuple with the star modifier

my_named_tuple = MyNamedTuple(*a_tuple)

From Stack Overflow

3 earlier thoughts