def convert ( self , value , _type ) : return self . type_convertors . get ( _type , lambda x : x ) ( value )
python dynamic or static typing recomendation
Convert instances of textx types and match rules to python types .
def convert(self, value, _type):
        """
        Convert instances of textx types and match rules to python types.
        """
        return self.type_convertors.get(_type, lambda x: x)(value)