Message371424
| Author | rhettinger |
|---|---|
| Recipients | cheryl.sabella, eric.smith, rhettinger, steve.dower, thatiparthy, valer |
| Date | 2020-06-12.22:19:45 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1592000385.29.0.486801239987.issue33881@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
I recommend leaving the code as-is. AFAICT, the situation almost never arises in practice, and if it did, the existing SyntaxError is clear.
Given that the rest of that language uses a SyntaxError, there isn't a net benefit for switching to TypeError:
>>> def f(µ=1, μ=2):
pass
SyntaxError: duplicate argument 'μ' in function definition
>>> def f(**kwds):
return kwds
>>> f(µ=1, μ=2)
SyntaxError: keyword argument repeated |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-06-12 22:19:45 | rhettinger | set | recipients: + rhettinger, eric.smith, steve.dower, thatiparthy, cheryl.sabella, valer |
| 2020-06-12 22:19:45 | rhettinger | set | messageid: <1592000385.29.0.486801239987.issue33881@roundup.psfhosted.org> |
| 2020-06-12 22:19:45 | rhettinger | link | issue33881 messages |
| 2020-06-12 22:19:45 | rhettinger | create | |