[Python-Dev] removing nested tuple function parameters
Terry Reedy
tjreedy at udel.edu
Mon Sep 19 19:06:32 CEST 2005
I consider the current situation to be a consistency feature. To a first
approximation, Python function calls 'pass' objects by name-binding:
param_name_list = arg_object_list
Disabling structure unpacking in this assignment would make the language
slightly more complex. Someone else posted the same observation in c.l.p.
Another thought. By directly unpacking and not naming a sequence, one
'announces' that only the components are of interest and that nothing will
be done with the sequence object itself.
Terry J. Reedy
More information about the Python-Dev
mailing list