Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 578cc74

Browse files
committed
Merged revisions 72718 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r72718 | mark.dickinson | 2009-05-17 11:38:30 +0100 (Sun, 17 May 2009) | 4 lines Issue #6044: remove confusing wording from complex -> integer and complex -> float conversion error messages. ........
1 parent b1fba6b commit 578cc74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/complexobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,15 +648,15 @@ static PyObject *
648648
complex_int(PyObject *v)
649649
{
650650
PyErr_SetString(PyExc_TypeError,
651-
"can't convert complex to int; use int(abs(z))");
651+
"can't convert complex to int");
652652
return NULL;
653653
}
654654

655655
static PyObject *
656656
complex_float(PyObject *v)
657657
{
658658
PyErr_SetString(PyExc_TypeError,
659-
"can't convert complex to float; use abs(z)");
659+
"can't convert complex to float");
660660
return NULL;
661661
}
662662

0 commit comments

Comments
 (0)