Author ztane
Recipients vstinner, yselivanov, ztane
Date 2015-09-11.13:25:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441977948.96.0.0622952910747.issue25070@psf.upfronthosting.co.za>
In-reply-to
Content
@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.
History
Date User Action Args
2015-09-11 13:25:48ztanesetrecipients: + ztane, vstinner, yselivanov
2015-09-11 13:25:48ztanesetmessageid: <1441977948.96.0.0622952910747.issue25070@psf.upfronthosting.co.za>
2015-09-11 13:25:48ztanelinkissue25070 messages
2015-09-11 13:25:48ztanecreate