A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-September/056489.html below:

[Python-Dev] removing nested tuple function parameters

[Python-Dev] removing nested tuple function parameters [Python-Dev] removing nested tuple function parametersTerry 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4