This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter
Date 2016-06-10.09:37:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465551431.42.0.267871198404.issue27286@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2016-06-10 09:37:11martin.pantersetrecipients: + martin.panter
2016-06-10 09:37:11martin.pantersetmessageid: <1465551431.42.0.267871198404.issue27286@psf.upfronthosting.co.za>
2016-06-10 09:37:11martin.panterlinkissue27286 messages
2016-06-10 09:37:11martin.pantercreate