diff Python/bltinmodule.c @ 33262:7a1fb316e655 2.3

Patch #1015021: Stop claiming that coerce can return None.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 25 Aug 2004 10:43:32 +0000
parents 677c0bf05735
children 88c1e17ceffc
line wrap: on
line diff
--- a/Python/bltinmodule.c	Tue Aug 24 21:48:15 2004 +0000
+++ b/Python/bltinmodule.c	Wed Aug 25 10:43:32 2004 +0000
@@ -326,11 +326,11 @@
 }
 
 PyDoc_STRVAR(coerce_doc,
-"coerce(x, y) -> None or (x1, y1)\n\
+"coerce(x, y) -> (x1, y1)\n\
 \n\
-When x and y can be coerced to values of the same type, return a tuple\n\
-containing the coerced values.  When they can't be coerced, return None.");
-
+Return a tuple consisting of the two numeric arguments converted to\n\
+a common type, using the same rules as used by arithmetic operations.\n\
+If coercion is not possible, raise TypeError.");
 
 static PyObject *
 builtin_compile(PyObject *self, PyObject *args)