summaryrefslogtreecommitdiffstats
path: root/Doc/faq
diff options
context:
space:
mode:
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'