diff options
author | Georg Brandl <georg@python.org> | 2008-08-08 15:34:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-08-08 15:34:34 (GMT) |
commit | b04d4853a7d76ace2e78de20a7155a9b5a11ce55 (patch) | |
tree | 765427e0d8bce492e033e9be3250ddcd8bcb7cfb /Doc/tutorial/inputoutput.rst | |
parent | 463f39d9ac7708973748fa22c71253a24a7fa3f2 (diff) | |
download | cpython-b04d4853a7d76ace2e78de20a7155a9b5a11ce55.zip cpython-b04d4853a7d76ace2e78de20a7155a9b5a11ce55.tar.gz cpython-b04d4853a7d76ace2e78de20a7155a9b5a11ce55.tar.bz2 |
Remove mention of backquotes in the tutorial.
Diffstat (limited to 'Doc/tutorial/inputoutput.rst')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 22bad74..559ce31 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -31,9 +31,7 @@ way is to use the :meth:`str.format` method. One question remains, of course: how do you convert values to strings? Luckily, Python has ways to convert any value to a string: pass it to the :func:`repr` -or :func:`str` functions. Reverse quotes (``````) are equivalent to -:func:`repr`, but they are no longer used in modern Python code and are removed -in future versions of the language. +or :func:`str` functions. The :func:`str` function is meant to return representations of values which are fairly human-readable, while :func:`repr` is meant to generate representations @@ -68,9 +66,6 @@ Some examples:: >>> # The argument to repr() may be any Python object: ... repr((x, y, ('spam', 'eggs'))) "(32.5, 40000, ('spam', 'eggs'))" - >>> # reverse quotes are convenient in interactive sessions: - ... `x, y, ('spam', 'eggs')` - "(32.5, 40000, ('spam', 'eggs'))" Here are two ways to write a table of squares and cubes:: |