3 ms·
They are dynamically creating a named tuple class (or prototype). The namedtuple implementation in the python standard library indeed accepts a space separated
by cdcarter 5y ago
They are dynamically creating a named tuple class (or prototype). The namedtuple implementation in the python standard library indeed accepts a space separated list of field names. Once it's been defined (as above) then you can create instances (records) like "Point(2,3)"