Author gvanrossum
Recipients emilyemorehouse, gvanrossum
Date 2018-09-12.00:31:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536712314.2.0.0269046726804.issue34641@psf.upfronthosting.co.za>
In-reply-to
Content
Emily and I just discovered that f((a)=1) is accepted and compiled the same as f(a=1). This goes against the intention that keyword arguments have the syntax f(NAME=expr).

I suspect that this behavior was introduced at the time we switched from generating from the (concrete) parse tree to first converting to an ast and then generating code from there. I.e. in the distant past (long before 2.7 even).

But I still think it ought to be fixed. Thoughts? Anyone have an idea *where* to fix it?
History
Date User Action Args
2018-09-12 00:31:54gvanrossumsetrecipients: + gvanrossum, emilyemorehouse
2018-09-12 00:31:54gvanrossumsetmessageid: <1536712314.2.0.0269046726804.issue34641@psf.upfronthosting.co.za>
2018-09-12 00:31:54gvanrossumlinkissue34641 messages
2018-09-12 00:31:53gvanrossumcreate