def get_ntobj ( self ) : if self . nts : return cx . namedtuple ( "ntgoea" , " " . join ( vars ( next ( iter ( self . nts ) ) ) . keys ( ) ) )
python covert namedtuple to unnamed
Create namedtuple object with GOEA fields .
def get_ntobj(self):
        """Create namedtuple object with GOEA fields."""
        if self.nts:
            return cx.namedtuple("ntgoea", " ".join(vars(next(iter(self.nts))).keys()))