Hi, I have a function that looks like this:
def getColumn(self, name, type, **args):
Now I would like to have a function
def getColumns(self, columns)
where I can pass a tuple that contains a tuple, where each entry in that tuple represents the arguments to be passed go getColumn. However, I'd like not to have to use named parameters for the name and type.
So I'd like not to have to use it like this:
def getColumns(self, columns):
columns = [self.getColumn(**data) for data in columns]
column_data = ( {'name' : 'myName', 'type' : 'myType', 'other' : 'myOther'},
{'name' : 'myName2', 'type' : 'myType2', 'other' : 'myOther2'})
How do I get rid of the 'name' : and 'type' :
Thanks in advance