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 bluenix
Recipients bluenix
Date 2022-03-18.01:17:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647566262.9.0.238891960992.issue47054@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-18 01:17:42bluenixsetrecipients: + bluenix
2022-03-18 01:17:42bluenixsetmessageid: <1647566262.9.0.238891960992.issue47054@roundup.psfhosted.org>
2022-03-18 01:17:42bluenixlinkissue47054 messages
2022-03-18 01:17:42bluenixcreate