In article <[EMAIL PROTECTED]>,
 "gangesmaster" <[EMAIL PROTECTED]> wrote:

>as we all know, * (asterisk) can be used to "inline" or "flatten" a
>tuple into an argument list, i.e.:
>
>def f(a, b, c):
>    ...
>x = (1,2,3)
>f(*x)
>
>so... mainly for symmetry's sake, why not make a "flattening" operator
>that also works outside the context of function calls?

    def flatten(*a) :
        return a
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to