diff -r a3f2dba93743 Python/ast.c --- a/Python/ast.c Mon Oct 03 07:27:06 2011 +0800 +++ b/Python/ast.c Sat Oct 08 13:03:14 2011 +0800 @@ -109,6 +109,8 @@ return; PyErr_Fetch(&type, &value, &tback); + if (!PyTuple_Check(value)) + value = PyObject_GetAttrString(value, "args"); errstr = PyTuple_GetItem(value, 0); if (!errstr) return;