Message268110
Playing with the generalized unpacking (PEP 448), I found a funny error message, when duplicate dictionary unpackings are included and also duplicate a literal keyword argument:
>>> print(end=".\n", **dict(end="dupe")) # No problem
TypeError: print() got multiple values for keyword argument 'end'
>>> print(**dict(end=".\n"), **dict(end="dupe")) # No problem
TypeError: print() got multiple values for keyword argument 'end'
>>> print(end=".\n", **dict(end="dupe"), **dict(end="dupe 2")) # str object?!
TypeError: str object got multiple values for keyword argument 'end' |
|
Date |
User |
Action |
Args |
2016-06-10 09:37:11 | martin.panter | set | recipients:
+ martin.panter |
2016-06-10 09:37:11 | martin.panter | set | messageid: <1465551431.42.0.267871198404.issue27286@psf.upfronthosting.co.za> |
2016-06-10 09:37:11 | martin.panter | link | issue27286 messages |
2016-06-10 09:37:11 | martin.panter | create | |
|