summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-05-15 07:04:36 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-05-15 07:04:36 (GMT)
commit373f0a718c359bc9e554ec323a9d71844ee76dfc (patch)
tree8763012f5a09acd72e2bd8cfb9cee10bad527f7f /Python
parent7a5fc28e81d3afddb534f92d79f0310b30831b27 (diff)
downloadcpython-373f0a718c359bc9e554ec323a9d71844ee76dfc.zip
cpython-373f0a718c359bc9e554ec323a9d71844ee76dfc.tar.gz
cpython-373f0a718c359bc9e554ec323a9d71844ee76dfc.tar.bz2
- Bug #1487966: Fix SystemError with conditional expression in assignment
Most of the test_syntax changes are just updating the numbers.
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 353514c..fafa253 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -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)",