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/056475.html below:

[Python-Dev] removing nested tuple function parameters

[Python-Dev] removing nested tuple function parameters [Python-Dev] removing nested tuple function parametersGreg Ewing greg.ewing at canterbury.ac.nz
Mon Sep 19 07:26:02 CEST 2005
François Pinard wrote:

> The only practical reason to like this feature is sparing the need of
> finding an otherwise useless name for the formal argument.

If the argument represents a coherent enough concept
to be passed in as a tuple in the first place, it
should be possible to find a meaningful name for it.
Otherwise the elements should probably be passed in
as separate arguments.

> Yet, if I was given the choice between nested tuple function arguments,
> and faster argument processing, the latter would win instantly.

I believe that exactly the same bytecode results either
way, so there's no speed advantage or penalty.

Greg

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