summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-08-25 10:42:41 +0000
committerMartin v. Löwis <martin@v.loewis.de>2004-08-25 10:42:41 +0000
commit5ccd57ef52c3c4d871e3c310ba515c1aa5cd5dc6 (patch)
tree049a8fc296e9af64a1fd988eff4c3233c5d05120 /Python
parent35fa8d5c5715b808fd5229edcd4701ea523a166d (diff)
downloadcpython-5ccd57ef52c3c4d871e3c310ba515c1aa5cd5dc6.tar.gz
Patch #1015021: Stop claiming that coerce can return None.
Will backport to 2.3.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index f7715b6de7..6fbe799f71 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -322,11 +322,11 @@ builtin_coerce(PyObject *self, PyObject *args)
}
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)