Skip to content

bpo-30600: Fix error messages (condition order in Argument Clinic)#2051

Merged
serhiy-storchaka merged 1 commit into
python:masterfrom
SylvainDe:bpo30600
Jun 10, 2017
Merged

bpo-30600: Fix error messages (condition order in Argument Clinic)#2051
serhiy-storchaka merged 1 commit into
python:masterfrom
SylvainDe:bpo30600

Conversation

@SylvainDe
Copy link
Copy Markdown
Contributor

The function '_PyArg_ParseStack()' and
'_PyArg_UnpackStack' were failing (with error
"XXX() takes Y argument (Z given)") before
the function '_PyArg_NoStackKeywords()' was called.
Thus, the latter did not raise its more meaningful
error : "XXX() takes no keyword arguments".

The function '_PyArg_ParseStack()' and
'_PyArg_UnpackStack' were failing (with error
"XXX() takes Y argument (Z given)") before
the function '_PyArg_NoStackKeywords()' was called.
Thus, the latter did not raise its more meaningful
error : "XXX() takes no keyword arguments".
@serhiy-storchaka serhiy-storchaka added needs backport to 3.6 type-bug An unexpected behavior, bug, or error labels Jun 10, 2017
@serhiy-storchaka serhiy-storchaka merged commit 7445381 into python:master Jun 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants