Why does unpacking a tuple cause a syntax error?

Viewed 17064

In Python, I wrote this:

bvar=mht.get_value()
temp=self.treemodel.insert(iter,0,(mht,False,*bvar))

I'm trying to expand bvar to the function call as arguments. But then it returns:

File "./unobsoluttreemodel.py", line 65
    temp=self.treemodel.insert(iter,0,(mht,False,*bvar))
                                                 ^
SyntaxError: invalid syntax

What just happen? It should be correct right?

4 Answers
Related