diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-04-25 01:59:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-04-25 01:59:09 (GMT) |
commit | e41251e864e94885d785b5a9bf8f824753316296 (patch) | |
tree | f530db7682d71f4920b22b8d7f84c89727647ab5 /Doc/library/numbers.rst | |
parent | 768db92b438038586c1580b711c528363a97d3f4 (diff) | |
download | cpython-e41251e864e94885d785b5a9bf8f824753316296.zip cpython-e41251e864e94885d785b5a9bf8f824753316296.tar.gz cpython-e41251e864e94885d785b5a9bf8f824753316296.tar.bz2 |
Merged revisions 62490 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62490 | benjamin.peterson | 2008-04-24 20:29:10 -0500 (Thu, 24 Apr 2008) | 2 lines
reformat some documentation of classes so methods and attributes are under the class directive
........
Diffstat (limited to 'Doc/library/numbers.rst')
-rw-r--r-- | Doc/library/numbers.rst | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Doc/library/numbers.rst b/Doc/library/numbers.rst index be6cf1f..c74bd47 100644 --- a/Doc/library/numbers.rst +++ b/Doc/library/numbers.rst @@ -27,18 +27,18 @@ The numeric tower ``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``. All except ``-`` and ``!=`` are abstract. -.. attribute:: Complex.real + .. attribute:: real - Abstract. Retrieves the :class:`Real` component of this number. + Abstract. Retrieves the :class:`Real` component of this number. -.. attribute:: Complex.imag + .. attribute:: imag - Abstract. Retrieves the :class:`Real` component of this number. + Abstract. Retrieves the :class:`Real` component of this number. -.. method:: Complex.conjugate() + .. method:: conjugate() - Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() == - (1-3j)``. + Abstract. Returns the complex conjugate. For example, ``(1+3j).conjugate() + == (1-3j)``. .. class:: Real @@ -60,13 +60,13 @@ The numeric tower should be in lowest terms. With these, it provides a default for :func:`float`. -.. attribute:: Rational.numerator + .. attribute:: numerator - Abstract. + Abstract. -.. attribute:: Rational.denominator + .. attribute:: denominator - Abstract. + Abstract. .. class:: Integral |