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
  • 115,751
  • 26
  • 228
  • 437
exhuma
  • 20,071
  • 12
  • 90
  • 123

0 Answers0