diff options
author | Thomas Wouters <thomas@python.org> | 2000-09-01 07:53:25 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-09-01 07:53:25 (GMT) |
commit | cadd5b6b58477658d516d03d109a03b977fc28bd (patch) | |
tree | 82e78ca7e1dba340ef14e33ec39f2e735753041c /Objects | |
parent | 3a9d0611fb5ec9cff7d24c885349637838b20c30 (diff) | |
download | cpython-cadd5b6b58477658d516d03d109a03b977fc28bd.zip cpython-cadd5b6b58477658d516d03d109a03b977fc28bd.tar.gz cpython-cadd5b6b58477658d516d03d109a03b977fc28bd.tar.bz2 |
Fix grouping, again. This time properly :-) Sorry, guys.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/abstract.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index abfaa5e..4e9ed96 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -813,12 +813,12 @@ PyNumber_InPlaceAdd(PyObject *v, PyObject *w) PyNumber_Add, 0) <= 0) return x; } - else if ((HASINPLACE(v) + else if (HASINPLACE(v) && ((v->ob_type->tp_as_sequence != NULL && (f = v->ob_type->tp_as_sequence->sq_inplace_concat) - != NULL))) + != NULL) || (v->ob_type->tp_as_number != NULL && - (f = v->ob_type->tp_as_number->nb_inplace_add) != NULL)) + (f = v->ob_type->tp_as_number->nb_inplace_add) != NULL))) return (*f)(v, w); BINOP(v, w, "__add__", "__radd__", PyNumber_Add); |