mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Patch #568124: Add doc string macros.
This commit is contained in:
parent
654c11ee3a
commit
14f8b4cfcb
63 changed files with 1509 additions and 1625 deletions
|
|
@ -912,11 +912,11 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
return complex_subtype_from_c_complex(type, cr);
|
||||
}
|
||||
|
||||
static char complex_doc[] =
|
||||
PyDoc_STRVAR(complex_doc,
|
||||
"complex(real[, imag]) -> complex number\n"
|
||||
"\n"
|
||||
"Create a complex number from a real part and an optional imaginary part.\n"
|
||||
"This is equivalent to (real + imag*1j) where imag defaults to 0.";
|
||||
"This is equivalent to (real + imag*1j) where imag defaults to 0.");
|
||||
|
||||
static PyNumberMethods complex_as_number = {
|
||||
(binaryfunc)complex_add, /* nb_add */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue