Message415463
Running the code below will produce a SyntaxError with the message: "non-default argument follows default argument".
def test(a=None, b):
return b if a is None else a
The issue is that `a` and `b` aren't *arguments*, rather, they are *parameters*. The error message should be changed to: "non-default parameter follows default parameter".
This change appears simple enough and although it is not something I've found to be troublesome, it will help users to use correct keywords (arguments vs. parameters) when searching on the internet. |
|
Date |
User |
Action |
Args |
2022-03-18 01:17:42 | bluenix | set | recipients:
+ bluenix |
2022-03-18 01:17:42 | bluenix | set | messageid: <1647566262.9.0.238891960992.issue47054@roundup.psfhosted.org> |
2022-03-18 01:17:42 | bluenix | link | issue47054 messages |
2022-03-18 01:17:42 | bluenix | create | |
|