def a((b,c,d),e):
Fredrik Lundh
fredrik at pythonware.com
Mon Apr 18 16:35:00 EDT 2005
"AdSR" <artur_spruce at yahoo.com> wrote:
> Small wonder since it looks like one of those language features
> that make committing atrocities an order of magnitude easier.
eh?
def f((a, b)):
...
is short for
def f(tmp):
a, b = tmp
...
if you think this is an "atrocity", maybe programming isn't for you.
> Has anyone actually used it in real code?
yes. grep the standard library for a number of typical use cases.
</F>
More information about the Python-list
mailing list