mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
bpo-44273: Improve syntax error message for assigning to "..." (GH-26477)
Use "ellipsis" instead of "Ellipsis" in syntax error messages to eliminate confusion with built-in variable Ellipsis.
This commit is contained in:
parent
fffa0f92ad
commit
39dd141a4b
2 changed files with 2 additions and 2 deletions
|
|
@ -217,7 +217,7 @@ _PyPegen_get_expr_name(expr_ty e)
|
|||
return "True";
|
||||
}
|
||||
if (value == Py_Ellipsis) {
|
||||
return "Ellipsis";
|
||||
return "ellipsis";
|
||||
}
|
||||
return "literal";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue