Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/introduction.rst @ 43449:7fcd9945d1bf
#1211, #1212, #1213: py3k fixes to the tutorial.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 28 Sep 2007 13:13:35 +0000 |
| parents | 4902671dd678 |
| children | 85cf334b32c3 |
line wrap: on
line diff
--- a/Doc/tutorial/introduction.rst Thu Sep 27 22:39:12 2007 +0000 +++ b/Doc/tutorial/introduction.rst Fri Sep 28 13:13:35 2007 +0000 @@ -131,9 +131,9 @@ 0.5 The conversion functions to floating point and integer (:func:`float`, -:func:`int` and :func:`long`) don't work for complex numbers --- there is no one -correct way to convert a complex number to a real number. Use ``abs(z)`` to get -its magnitude (as a float) or ``z.real`` to get its real part. :: +:func:`int`) don't work for complex numbers --- there is not one correct way to +convert a complex number to a real number. Use ``abs(z)`` to get its magnitude +(as a float) or ``z.real`` to get its real part:: >>> a=3.0+4.0j >>> float(a)
