Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 932e548

Browse files
committed
Modifications
1 parent a0e7556 commit 932e548

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

14-it-generator/aritprog_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
>>> from decimal import Decimal
2020
>>> ap = ArithmeticProgression(0, Decimal('.1'), .3)
2121
>>> list(ap)
22-
[Decimal('0.0'), Decimal('0.1'), Decimal('0.2')]
22+
[Decimal('0'), Decimal('0.1'), Decimal('0.2')]
2323
2424
# END ARITPROG_CLASS_DEMO
2525
"""

14-it-generator/aritprog_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
>>> from decimal import Decimal
1515
>>> ap = aritprog_gen(0, Decimal('.1'), .3)
1616
>>> list(ap)
17-
[Decimal('0.0'), Decimal('0.1'), Decimal('0.2')]
17+
[Decimal('0'), Decimal('0.1'), Decimal('0.2')]
1818
1919
"""
2020

15-context-mngr/mirror.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
99
>>> from mirror import LookingGlass
1010
>>> with LookingGlass() as what: # <1>
11-
... print('Alice, Kitty and Snowdrop') # <2>
11+
... print('Alice, Kitty and Snowdrop')
1212
... print(what)
1313
...
14-
pordwonS dna yttiK ,ecilA # <3>
14+
pordwonS dna yttiK ,ecilA
1515
YKCOWREBBAJ
1616
>>> what # <4>
1717
'JABBERWOCKY'

15-context-mngr/mirror_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
>>> manager # doctest: +ELLIPSIS
2929
<contextlib._GeneratorContextManager object at 0x...>
3030
>>> monster = manager.__enter__() # <2>
31-
>>> monster == 'JABBERWOCKY' # <3>
31+
>>> monster == 'JABBERWOCKY'
3232
eurT
3333
>>> monster
3434
'YKCOWREBBAJ'

15-context-mngr/mirror_gen_exc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
>>> manager # doctest: +ELLIPSIS
3636
>...x0 ta tcejbo reganaMtxetnoCrotareneG_.biltxetnoc<
3737
>>> manager.__exit__(None, None, None) # <4>
38+
False
3839
>>> monster
3940
'JABBERWOCKY'
4041

0 commit comments

Comments
 (0)