This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python argument tuple unpacking
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, simonzack
Priority: normal Keywords:

Created on 2014-11-26 04:02 by simonzack, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg231689 - (view) Author: Simon Zack (simonzack) Date: 2014-11-26 04:02
Python already has tuple unpacking in many places, I wonder if this has been considered for arguments yet, it seems rather convenient and a natural extension to me.

Here's what I mean:

def func((a, b, c)):
    print(a, b, c)

func((1, 2, 3))

should print "1 2 3"
msg231690 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2014-11-26 04:03
Python 2 has it. It was removed in Python 3. See https://www.python.org/dev/peps/pep-3113/
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67133
2014-11-26 04:03:48benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg231690

resolution: rejected
2014-11-26 04:02:11simonzackcreate