diff options
| author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-04 20:41:44 +0000 |
|---|---|---|
| committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-04 20:41:44 +0000 |
| commit | 80af6da7489c3b28e0a46c73849da34273972e3b (patch) | |
| tree | 5571b9dfffaacc77b06124dafe3441f9c4d2cebd /Objects/complexobject.c | |
| parent | d5bb9215c960da14e138adc88c80daa54e6601c4 (diff) | |
| download | cpython-git-80af6da7489c3b28e0a46c73849da34273972e3b.tar.gz | |
Fixed complex.__getnewargs__() to not emit another complex object.
Diffstat (limited to 'Objects/complexobject.c')
| -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 e22c200fe7..6110b997f1 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 |
