From: Thomas Wouters Date: Thu, 31 Aug 2000 07:02:19 +0000 (+0000) Subject: Fix grouping: this is how I intended it, misguided as I was in boolean X-Git-Tag: v2.0b1~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b958f7d7b28cacb4f4e653c6deb561fda18d099;p=python Fix grouping: this is how I intended it, misguided as I was in boolean operator associativity. --- diff --git a/Objects/abstract.c b/Objects/abstract.c index e3492ec06f..fcd86caca9 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -813,8 +813,8 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w) PyNumber_Add, 0) <= 0) return x; } - else if ((HASINPLACE(v) - && (v->ob_type->tp_as_sequence != NULL && + else if (HASINPLACE(v) + && ((v->ob_type->tp_as_sequence != NULL && (f = v->ob_type->tp_as_sequence->sq_inplace_concat) != NULL)) || (v->ob_type->tp_as_number != NULL && (f = v->ob_type->tp_as_number->nb_inplace_add) != NULL))