summaryrefslogtreecommitdiffstats
path: root/Doc/faq
diff options
context:
space:
mode:
authorMarco Buttu <marco.buttu@gmail.com>2017-03-18 16:59:33 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-03-18 16:59:33 (GMT)
commit909a6f626ff343937cd3f06fda996870e7890724 (patch)
tree023cea76fe93c42b8a01a843e450c26b05cd92db /Doc/faq
parent993d4b3440f2282976901ce66879037c4443868a (diff)
downloadcpython-909a6f626ff343937cd3f06fda996870e7890724.zip
cpython-909a6f626ff343937cd3f06fda996870e7890724.tar.gz
cpython-909a6f626ff343937cd3f06fda996870e7890724.tar.bz2
bpo-27200: Fix doctests in programming.rst and datetime.rst (#401)
Diffstat (limited to 'Doc/faq')
-rw-r--r--Doc/faq/programming.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 9c5e20d..d9bdb21 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -1849,7 +1849,7 @@ containing statements like ::
will continue to work with the old version of the imported objects. If the
module contains class definitions, existing class instances will *not* be
updated to use the new class definition. This can result in the following
-paradoxical behaviour:
+paradoxical behaviour::
>>> import importlib
>>> import cls
@@ -1860,7 +1860,7 @@ paradoxical behaviour:
False
The nature of the problem is made clear if you print out the "identity" of the
-class objects:
+class objects::
>>> hex(id(c.__class__))
'0x7352a0'