Message325107
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? |
|
Date |
User |
Action |
Args |
2018-09-12 00:31:54 | gvanrossum | set | recipients:
+ gvanrossum, emilyemorehouse |
2018-09-12 00:31:54 | gvanrossum | set | messageid: <1536712314.2.0.0269046726804.issue34641@psf.upfronthosting.co.za> |
2018-09-12 00:31:54 | gvanrossum | link | issue34641 messages |
2018-09-12 00:31:53 | gvanrossum | create | |
|