aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Objects/clinic/complexobject.c.h
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-07-08 15:54:05 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-07-08 15:54:05 +0000
commitfc7be18c76af2e700641f3598c4856baeef1428e (patch)
tree11dbca45eb321c3a4dd08b12152acc6ef5dd3fa9 /contrib/tools/python3/Objects/clinic/complexobject.c.h
parentec0e7ed6da6fb317741fd8468602949a1362eca5 (diff)
parentc92cb9d3a19331916f0c274d80e67f02a62caa9b (diff)
downloadydb-fc7be18c76af2e700641f3598c4856baeef1428e.tar.gz
Merge branch 'rightlib' into mergelibs-240708-1553
Diffstat (limited to 'contrib/tools/python3/Objects/clinic/complexobject.c.h')
-rw-r--r--contrib/tools/python3/Objects/clinic/complexobject.c.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/tools/python3/Objects/clinic/complexobject.c.h b/contrib/tools/python3/Objects/clinic/complexobject.c.h
index e92c6e9858..f0c841c12a 100644
--- a/contrib/tools/python3/Objects/clinic/complexobject.c.h
+++ b/contrib/tools/python3/Objects/clinic/complexobject.c.h
@@ -97,9 +97,12 @@ PyDoc_STRVAR(complex_new__doc__,
"complex(real=0, imag=0)\n"
"--\n"
"\n"
-"Create a complex number from a real part and an optional imaginary part.\n"
+"Create a complex number from a string or numbers.\n"
"\n"
-"This is equivalent to (real + imag*1j) where imag defaults to 0.");
+"If a string is given, parse it as a complex number.\n"
+"If a single number is given, convert it to a complex number.\n"
+"If the \'real\' or \'imag\' arguments are given, create a complex number\n"
+"with the specified real and imaginary components.");
static PyObject *
complex_new_impl(PyTypeObject *type, PyObject *r, PyObject *i);
@@ -160,4 +163,4 @@ skip_optional_pos:
exit:
return return_value;
}
-/*[clinic end generated code: output=52e85a1e258425d6 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=9558b8449db17dc1 input=a9049054013a1b77]*/