Posts: 4,648
Threads: 1,495
Joined: Sep 2016
does anyone know what collections.namedtuple's first argument, docs refer to as
typename, is actually used for? i'm trying to figure out what i should put there.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,648
Threads: 1,495
Joined: Sep 2016
gotcha, so it is creating a type. at a minimum each named tuple type name needs to be unique? does this namespace also need to avoid typenames of non-namedtuple types like "float"?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,648
Threads: 1,495
Joined: Sep 2016
Dec-22-2019, 05:33 AM
(This post was last modified: Dec-22-2019, 05:33 AM by Skaperen.)
what i would wonder is if there is any interference or collision with the the real float type.
and i have no plan to do other than use unique meaningful type names. i am looking over old functions to see what might get benefit from a named tuple.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.