Commit 5ccd57ef authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #1015021: Stop claiming that coerce can return None.

Will backport to 2.3.
parent 35fa8d5c
...@@ -1180,7 +1180,7 @@ bypass these functions without concerns about missing something important. ...@@ -1180,7 +1180,7 @@ bypass these functions without concerns about missing something important.
\begin{funcdesc}{coerce}{x, y} \begin{funcdesc}{coerce}{x, y}
Return a tuple consisting of the two numeric arguments converted to Return a tuple consisting of the two numeric arguments converted to
a common type, using the same rules as used by arithmetic a common type, using the same rules as used by arithmetic
operations. operations. If coercion is not possible, raise \exception{TypeError}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{intern}{string} \begin{funcdesc}{intern}{string}
......
...@@ -322,11 +322,11 @@ builtin_coerce(PyObject *self, PyObject *args) ...@@ -322,11 +322,11 @@ builtin_coerce(PyObject *self, PyObject *args)
} }
PyDoc_STRVAR(coerce_doc, PyDoc_STRVAR(coerce_doc,
"coerce(x, y) -> None or (x1, y1)\n\ "coerce(x, y) -> (x1, y1)\n\
\n\ \n\
When x and y can be coerced to values of the same type, return a tuple\n\ Return a tuple consisting of the two numeric arguments converted to\n\
containing the coerced values. When they can't be coerced, return None."); a common type, using the same rules as used by arithmetic operations.\n\
If coercion is not possible, raise TypeError.");
static PyObject * static PyObject *
builtin_compile(PyObject *self, PyObject *args) builtin_compile(PyObject *self, PyObject *args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment