diff options
author | Georg Brandl <georg@python.org> | 2008-08-08 06:45:01 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-08-08 06:45:01 (GMT) |
commit | 1e3830a1786fa7183d47145ec57fe1f42590601f (patch) | |
tree | 566b165845ed909dea83ec58d9d6e26168de4f90 /Doc | |
parent | 409c9d7184276df875c884c9220a2e6d0efd997c (diff) | |
download | cpython-1e3830a1786fa7183d47145ec57fe1f42590601f.zip cpython-1e3830a1786fa7183d47145ec57fe1f42590601f.tar.gz cpython-1e3830a1786fa7183d47145ec57fe1f42590601f.tar.bz2 |
#3523: no backquotes any more.
Diffstat (limited to 'Doc')
-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 5f8d04e..f2946ce 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -34,9 +34,7 @@ to substitute values into strings. 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 @@ -71,9 +69,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:: |