mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00
- Bug #1487966: Fix SystemError with conditional expression in assignment
Most of the test_syntax changes are just updating the numbers.
This commit is contained in:
parent
7a5fc28e81
commit
373f0a718c
4 changed files with 25 additions and 16 deletions
|
@ -401,6 +401,9 @@ set_context(expr_ty e, expr_context_ty ctx, const node *n)
|
|||
case Repr_kind:
|
||||
expr_name = "repr";
|
||||
break;
|
||||
case IfExp_kind:
|
||||
expr_name = "conditional expression";
|
||||
break;
|
||||
default:
|
||||
PyErr_Format(PyExc_SystemError,
|
||||
"unexpected expression in assignment %d (line %d)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue