Skip to content

Commit 9b32618

Browse files
committed
cap 11: revisão de estilo
1 parent 1420cfc commit 9b32618

24 files changed

+92
-94
lines changed

code/11-pythonic-obj/vector2d_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(True, False)
2424
2525
26-
Test of ``.frombytes()`` class method:
26+
Test of `.frombytes()` class method:
2727
2828
>>> v1_clone = Vector2d.frombytes(bytes(v1))
2929
>>> v1_clone

code/11-pythonic-obj/vector2d_v2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(True, False)
2424
2525
26-
Test of ``.frombytes()`` class method:
26+
Test of `.frombytes()` class method:
2727
2828
>>> v1_clone = Vector2d.frombytes(bytes(v1))
2929
>>> v1_clone
@@ -32,7 +32,7 @@
3232
True
3333
3434
35-
Tests of ``format()`` with Cartesian coordinates:
35+
Tests of `format()` with Cartesian coordinates:
3636
3737
>>> format(v1)
3838
'(3.0, 4.0)'
@@ -42,7 +42,7 @@
4242
'(3.000e+00, 4.000e+00)'
4343
4444
45-
Tests of the ``angle`` method::
45+
Tests of the `.angle()` method::
4646
4747
>>> Vector2d(0, 0).angle()
4848
0.0
@@ -55,7 +55,7 @@
5555
True
5656
5757
58-
Tests of ``format()`` with polar coordinates:
58+
Tests of `format()` with polar coordinates:
5959
6060
>>> format(Vector2d(1, 1), 'p') # doctest:+ELLIPSIS
6161
'<1.414213..., 0.785398...>'

code/11-pythonic-obj/vector2d_v2_fmt_snippet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
(True, False)
2222
2323
24-
Test of ``.frombytes()`` class method:
24+
Test of `.frombytes()` class method:
2525
2626
>>> v1_clone = Vector2d.frombytes(bytes(v1))
2727
>>> v1_clone
@@ -30,7 +30,7 @@
3030
True
3131
3232
33-
Tests of ``format()`` with Cartesian coordinates:
33+
Tests of `format()` with Cartesian coordinates:
3434
3535
>>> format(v1)
3636
'(3.0, 4.0)'
@@ -40,7 +40,7 @@
4040
'(3.000e+00, 4.000e+00)'
4141
4242
43-
Tests of the ``angle`` method::
43+
Tests of the `.angle()` method::
4444
4545
>>> Vector2d(0, 0).angle()
4646
0.0
@@ -53,7 +53,7 @@
5353
True
5454
5555
56-
Tests of ``format()`` with polar coordinates:
56+
Tests of `format()` with polar coordinates:
5757
5858
>>> format(Vector2d(1, 1), 'p') # doctest:+ELLIPSIS
5959
'<1.414213..., 0.785398...>'

code/11-pythonic-obj/vector2d_v3.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(True, False)
2424
2525
26-
Test of ``.frombytes()`` class method:
26+
Test of `.frombytes()` class method:
2727
2828
>>> v1_clone = Vector2d.frombytes(bytes(v1))
2929
>>> v1_clone
@@ -32,7 +32,7 @@
3232
True
3333
3434
35-
Tests of ``format()`` with Cartesian coordinates:
35+
Tests of `format()` with Cartesian coordinates:
3636
3737
>>> format(v1)
3838
'(3.0, 4.0)'
@@ -42,7 +42,7 @@
4242
'(3.000e+00, 4.000e+00)'
4343
4444
45-
Tests of the ``angle`` method::
45+
Tests of the `.angle()` method::
4646
4747
>>> Vector2d(0, 0).angle()
4848
0.0
@@ -55,7 +55,7 @@
5555
True
5656
5757
58-
Tests of ``format()`` with polar coordinates:
58+
Tests of `format()` with polar coordinates:
5959
6060
>>> format(Vector2d(1, 1), 'p') # doctest:+ELLIPSIS
6161
'<1.414213..., 0.785398...>'

code/11-pythonic-obj/vector2d_v3_prophash.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(True, False)
2424
2525
26-
Test of ``.frombytes()`` class method:
26+
Test of `.frombytes()` class method:
2727
2828
>>> v1_clone = Vector2d.frombytes(bytes(v1))
2929
>>> v1_clone
@@ -32,7 +32,7 @@
3232
True
3333
3434
35-
Tests of ``format()`` with Cartesian coordinates:
35+
Tests of `format()` with Cartesian coordinates:
3636
3737
>>> format(v1)
3838
'(3.0, 4.0)'
@@ -42,7 +42,7 @@
4242
'(3.000e+00, 4.000e+00)'
4343
4444
45-
Tests of the ``angle`` method::
45+
Tests of the `.angle()` method::
4646
4747
>>> Vector2d(0, 0).angle()
4848
0.0
@@ -55,7 +55,7 @@
5555
True
5656
5757
58-
Tests of ``format()`` with polar coordinates:
58+
Tests of `format()` with polar coordinates:
5959
6060
>>> format(Vector2d(1, 1), 'p') # doctest:+ELLIPSIS
6161
'<1.414213..., 0.785398...>'

code/11-pythonic-obj/vector2d_v3_slots.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
(True, False)
2424
2525
26-
Test of ``.frombytes()`` class method:
26+
Test of `.frombytes()` class method:
2727
2828
>>> v1_clone = Vector2d.frombytes(bytes(v1))
2929
>>> v1_clone
@@ -32,7 +32,7 @@
3232
True
3333
3434
35-
Tests of ``format()`` with Cartesian coordinates:
35+
Tests of `format()` with Cartesian coordinates:
3636
3737
>>> format(v1)
3838
'(3.0, 4.0)'
@@ -42,7 +42,7 @@
4242
'(3.000e+00, 4.000e+00)'
4343
4444
45-
Tests of the ``angle`` method::
45+
Tests of the `.angle()` method::
4646
4747
>>> Vector2d(0, 0).angle()
4848
0.0
@@ -55,7 +55,7 @@
5555
True
5656
5757
58-
Tests of ``format()`` with polar coordinates:
58+
Tests of `format()` with polar coordinates:
5959
6060
>>> format(Vector2d(1, 1), 'p') # doctest:+ELLIPSIS
6161
'<1.414213..., 0.785398...>'

code/12-seq-hacking/vector_v1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(True, False)
3434
3535
36-
Test of ``.frombytes()`` class method:
36+
Test of `.frombytes()` class method:
3737
3838
>>> v1_clone = Vector.frombytes(bytes(v1))
3939
>>> v1_clone
@@ -70,7 +70,7 @@
7070
9.53939201...
7171
7272
73-
Test of ``.__bytes__`` and ``.frombytes()`` methods::
73+
Test of ``.__bytes__`` and `.frombytes()` methods::
7474
7575
>>> v1 = Vector([3, 4, 5])
7676
>>> v1_clone = Vector.frombytes(bytes(v1))

code/12-seq-hacking/vector_v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(True, False)
3434
3535
36-
Test of ``.frombytes()`` class method:
36+
Test of `.frombytes()` class method:
3737
3838
>>> v1_clone = Vector.frombytes(bytes(v1))
3939
>>> v1_clone
@@ -70,7 +70,7 @@
7070
9.53939201...
7171
7272
73-
Test of ``.__bytes__`` and ``.frombytes()`` methods::
73+
Test of ``.__bytes__`` and `.frombytes()` methods::
7474
7575
>>> v1 = Vector([3, 4, 5])
7676
>>> v1_clone = Vector.frombytes(bytes(v1))

code/12-seq-hacking/vector_v3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(True, False)
3434
3535
36-
Test of ``.frombytes()`` class method:
36+
Test of `.frombytes()` class method:
3737
3838
>>> v1_clone = Vector.frombytes(bytes(v1))
3939
>>> v1_clone
@@ -70,7 +70,7 @@
7070
9.53939201...
7171
7272
73-
Test of ``.__bytes__`` and ``.frombytes()`` methods::
73+
Test of ``.__bytes__`` and `.frombytes()` methods::
7474
7575
>>> v1 = Vector([3, 4, 5])
7676
>>> v1_clone = Vector.frombytes(bytes(v1))

code/12-seq-hacking/vector_v4.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
(True, False)
3434
3535
36-
Test of ``.frombytes()`` class method:
36+
Test of `.frombytes()` class method:
3737
3838
>>> v1_clone = Vector.frombytes(bytes(v1))
3939
>>> v1_clone
@@ -70,7 +70,7 @@
7070
9.53939201...
7171
7272
73-
Test of ``.__bytes__`` and ``.frombytes()`` methods::
73+
Test of ``.__bytes__`` and `.frombytes()` methods::
7474
7575
>>> v1 = Vector([3, 4, 5])
7676
>>> v1_clone = Vector.frombytes(bytes(v1))

0 commit comments

Comments
 (0)