bpo-27200: Fix doctests in programming.rst and datetime.rst (#401) · pythoncapi/cpython@909a6f6 · GitHub
Skip to content

Commit 909a6f6

Browse files
marco-buttuberkerpeksag
authored andcommitted
bpo-27200: Fix doctests in programming.rst and datetime.rst (python#401)
1 parent 993d4b3 commit 909a6f6

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

Doc/conf.py

Lines changed: 1 addition & 0 deletions

Doc/faq/programming.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ containing statements like ::
18491849
will continue to work with the old version of the imported objects. If the
18501850
module contains class definitions, existing class instances will *not* be
18511851
updated to use the new class definition. This can result in the following
1852-
paradoxical behaviour:
1852+
paradoxical behaviour::
18531853

18541854
>>> import importlib
18551855
>>> import cls
@@ -1860,7 +1860,7 @@ paradoxical behaviour:
18601860
False
18611861

18621862
The nature of the problem is made clear if you print out the "identity" of the
1863-
class objects:
1863+
class objects::
18641864

18651865
>>> hex(id(c.__class__))
18661866
'0x7352a0'

Doc/library/datetime.rst

Lines changed: 7 additions & 3 deletions

0 commit comments

Comments
 (0)