I have an array that matches function parameters:
TmpfieldNames = []
TmpfieldNames.append(Trademark.name)
TmpfieldNames.append(Trademark.id)
return func(Trademark.name, Trademark.id)
func(Trademark.name.Trademark.id)works but func(TmpfieldNames)does not work. How can I call a function without explicitly indexing into an array, for example func(TmpfieldNames[0], TmpfieldNames[1])?
source
share