[Python-Dev] removing nested tuple function parameters (original) (raw)
Terry Reedy tjreedy at udel.edu
Mon Sep 19 19:06:32 CEST 2005
- Previous message: [Python-Dev] removing nested tuple function parameters
- Next message: [Python-Dev] removing nested tuple function parameters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] removing nested tuple function parameters
- Next message: [Python-Dev] removing nested tuple function parameters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]