diff options
author | Georg Brandl <georg@python.org> | 2007-09-28 13:13:35 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-28 13:13:35 (GMT) |
commit | 2d2590de49081eea38152e0a25496069a059c69e (patch) | |
tree | b80eb1ae3784fd11b7edfbd64092824483838ef3 /Doc/tutorial/introduction.rst | |
parent | 7c77f753b452cfd423c2cb790977ddcfdabfa162 (diff) | |
download | cpython-2d2590de49081eea38152e0a25496069a059c69e.zip cpython-2d2590de49081eea38152e0a25496069a059c69e.tar.gz cpython-2d2590de49081eea38152e0a25496069a059c69e.tar.bz2 |
#1211, #1212, #1213: py3k fixes to the tutorial.
Diffstat (limited to 'Doc/tutorial/introduction.rst')
-rw-r--r-- | Doc/tutorial/introduction.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 1b24588..30adac9 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -131,9 +131,9 @@ and imaginary part. To extract these parts from a complex number *z*, use 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) |