Antti Haapala added the comment:

@haypo yes.

I must add that I found out that Python 2.5 also allows 

    f(1 for x in [1], *a)

and 

    f(1 for x in [1], **kw)

but not

    f(*a, 1 for x in [1])

So I do not know if the first and second cases were intentional or not.
Also, in Python 2.6 - 3.4, f(*a, 1 for x in [1]) provides the generator as the 
*first* positional argument, in 3.5 it'd be the last one.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25070>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to