Discussion:
[Python-3000-checkins] r65593 - python/branches/py3k/Doc/tutorial/inputoutput.rst
georg.brandl
2008-08-08 06:45:01 UTC
Permalink
Author: georg.brandl
Date: Fri Aug 8 08:45:01 2008
New Revision: 65593

Log:
#3523: no backquotes any more.


Modified:
python/branches/py3k/Doc/tutorial/inputoutput.rst

Modified: python/branches/py3k/Doc/tutorial/inputoutput.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/inputoutput.rst (original)
+++ python/branches/py3k/Doc/tutorial/inputoutput.rst Fri Aug 8 08:45:01 2008
@@ -34,9 +34,7 @@

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 @@
... 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::
Benjamin Peterson
2008-08-08 14:11:26 UTC
Permalink
On Fri, Aug 8, 2008 at 12:45 AM, georg.brandl
Post by georg.brandl
Author: georg.brandl
Date: Fri Aug 8 08:45:01 2008
New Revision: 65593
#3523: no backquotes any more.
You might do this modification in the trunk too, so people don't get
into a habit that gets instantly quashed in 3.0. :)
--
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."
Loading...