zer0uno
zer0uno

Reputation: 8030

why tuple assignment in function arguments doesn't work in python3

In Python3 the following code doesn't work anymore:

def function((a, (b, c))):
  pass

Why was it removed? What's the reason?

Upvotes: 2

Views: 810

Answers (1)

Samuel Yaron
Samuel Yaron

Reputation: 106

You can find the answer by reading PEP 3113. In short words: There were more troubles in keeping the tuple parameter unpacking than removing it.

Upvotes: 3

Related Questions