0

In Python you can write something like this:

a = (1, 2, 3)
b = {'foo': 'bar'}
my_function(*a, **b)

Is there a specific term for what happens in the last line with a and b and, if yes, what is it? It's not "destructuring" I suppose. And "variable expansion" sounds wrong too.

jonrsharpe
  • 107,083
  • 22
  • 201
  • 376
exhuma
  • 17,904
  • 10
  • 85
  • 115

0 Answers0