commit | 80af6da7489c3b28e0a46c73849da34273972e3b | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Wed Jun 04 20:41:44 2008 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Wed Jun 04 20:41:44 2008 +0000 |
tree | 5571b9dfffaacc77b06124dafe3441f9c4d2cebd | |
parent | d5bb9215c960da14e138adc88c80daa54e6601c4 [diff] [blame] |
Fixed complex.__getnewargs__() to not emit another complex object.
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index e22c200..6110b99 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c
@@ -822,7 +822,8 @@ static PyObject * complex_getnewargs(PyComplexObject *v) { - return Py_BuildValue("(D)", &v->cval); + Py_complex c = v->cval; + return Py_BuildValue("(dd)", c.real, c.imag); } #if 0