mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Patch #1015021: Stop claiming that coerce can return None.
Will backport to 2.3.
This commit is contained in:
parent
b92b7ed9d6
commit
8d494f3241
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue