You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 3_objects.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -602,7 +602,7 @@ <h3><span class="section-number">3.3.4. </span>String representations of objects
602
602
<spanid="object-arithmetic"></span><h3><spanclass="section-number">3.3.6. </span>Defining arithmetic options on objects<aclass="headerlink" href="#defining-arithmetic-options-on-objects" title="Permalink to this headline">¶</a></h3>
603
603
<detailsclass="sphinx-bs dropdown card mb-3">
604
604
<summaryclass="summary-title card-header">
605
-
Video: object equality and test driven development<divclass="summary-down docutils">
Copy file name to clipboardExpand all lines: 4_style.html
+47-3Lines changed: 47 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,20 @@
53
53
54
54
<divclass="section" id="a-matter-of-style">
55
55
<spanid="style"></span><h1><spanclass="section-number">4. </span>A matter of style<aclass="headerlink" href="#a-matter-of-style" title="Permalink to this headline">¶</a></h1>
<pclass="card-text">Imperial students can also <aclass="reference external" href="https://imperial.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=3572d8ea-5635-4b1a-9243-acae0150ddf8">watch this video on Panopto</a></p>
<h2><spanclass="section-number">4.1. </span>The value of convention<aclass="headerlink" href="#the-value-of-convention" title="Permalink to this headline">¶</a></h2>
58
71
<p>Consider the following definition of the limit of a function <spanclass="math notranslate nohighlight">\(f\)</span> at a point <spanclass="math notranslate nohighlight">\(c\)</span>:</p>
<pclass="card-text">Imperial students can also <aclass="reference external" href="https://imperial.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=91c271e4-a61f-493c-a725-acae015273d5">watch this video on Panopto</a></p>
167
+
</div>
168
+
</details><p>One of the helpful characteristics of PEP 8 is that many of its strictures can
143
169
be enforced automatically by a computer program. Programs that automatically
144
170
check programming style are called linters. Lint are the little fibres that tend
145
171
to stick to clothes, especially suit jackets, and make them ugly. So a linter is
tendency for programmers to cut style corners, with the effect that
159
185
the code in a project becomes harder and harder to read and work with.</p>
160
186
</div>
187
+
<divclass="section" id="installing-flake8">
188
+
<h3><spanclass="section-number">4.2.2. </span>Installing flake8<aclass="headerlink" href="#installing-flake8" title="Permalink to this headline">¶</a></h3>
189
+
<p>Flake8 is a Python package, which can be installed using pip. Make sure you’ve
190
+
activated your <aclass="reference internal" href="2_programs_in_files.html#term-virtual-environment"><spanclass="xref std std-term">virtual environment</span></a> and then run:</p>
0 commit comments