Mercurial > cpython-lru_cache-weakref
comparison Objects/complexobject.c @ 85976:3ef157674abc 2.7
#19068: use imperative mood in complex object docstrings. Patch by Marco Buttu.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sun, 06 Oct 2013 00:39:18 +0300 |
| parents | b36cb4602e21 |
| children |
comparison
equal
deleted
inserted
replaced
| 85962:92c2e76ca595 | 85976:3ef157674abc |
|---|---|
| 883 } | 883 } |
| 884 | 884 |
| 885 PyDoc_STRVAR(complex_conjugate_doc, | 885 PyDoc_STRVAR(complex_conjugate_doc, |
| 886 "complex.conjugate() -> complex\n" | 886 "complex.conjugate() -> complex\n" |
| 887 "\n" | 887 "\n" |
| 888 "Returns the complex conjugate of its argument. (3-4j).conjugate() == 3+4j."); | 888 "Return the complex conjugate of its argument. (3-4j).conjugate() == 3+4j."); |
| 889 | 889 |
| 890 static PyObject * | 890 static PyObject * |
| 891 complex_getnewargs(PyComplexObject *v) | 891 complex_getnewargs(PyComplexObject *v) |
| 892 { | 892 { |
| 893 Py_complex c = v->cval; | 893 Py_complex c = v->cval; |
| 895 } | 895 } |
| 896 | 896 |
| 897 PyDoc_STRVAR(complex__format__doc, | 897 PyDoc_STRVAR(complex__format__doc, |
| 898 "complex.__format__() -> str\n" | 898 "complex.__format__() -> str\n" |
| 899 "\n" | 899 "\n" |
| 900 "Converts to a string according to format_spec."); | 900 "Convert to a string according to format_spec."); |
| 901 | 901 |
| 902 static PyObject * | 902 static PyObject * |
| 903 complex__format__(PyObject* self, PyObject* args) | 903 complex__format__(PyObject* self, PyObject* args) |
| 904 { | 904 { |
| 905 PyObject *format_spec; | 905 PyObject *format_spec; |
