diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-04 20:41:44 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-04 20:41:44 (GMT) |
commit | 80af6da7489c3b28e0a46c73849da34273972e3b (patch) | |
tree | 5571b9dfffaacc77b06124dafe3441f9c4d2cebd /Objects | |
parent | d5bb9215c960da14e138adc88c80daa54e6601c4 (diff) | |
download | cpython-80af6da7489c3b28e0a46c73849da34273972e3b.zip cpython-80af6da7489c3b28e0a46c73849da34273972e3b.tar.gz cpython-80af6da7489c3b28e0a46c73849da34273972e3b.tar.bz2 |
Fixed complex.__getnewargs__() to not emit another complex object.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ PyDoc_STRVAR(complex_conjugate_doc, 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 |