Skip to content

Commit 9f0af6b

Browse files
committed
Small fixes
1 parent d7a22a5 commit 9f0af6b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ from types import FunctionType, MethodType, LambdaType, GeneratorType
262262
```
263263

264264
### Abstract Base Classes
265-
**Each abstract base class specifies a set of virtual subclasses. This classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not.**
265+
**Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not.**
266266

267267
```python
268268
>>> from collections.abc import Sequence, Collection, Iterable
@@ -1458,7 +1458,7 @@ Exit
14581458
```python
14591459
import sys
14601460
sys.exit() # Exits with exit code 0 (success).
1461-
sys.exit(<el>) # Prints object to stderr and exits with 1.
1461+
sys.exit(<el>) # Prints to stderr and exits with 1.
14621462
sys.exit(<int>) # Exits with passed exit code.
14631463
```
14641464

@@ -1476,7 +1476,7 @@ print(<el_1>, ..., sep=' ', end='\n', file=sys.stdout, flush=False)
14761476
from pprint import pprint
14771477
pprint(<collection>, width=80, depth=None, compact=False, sort_dicts=True)
14781478
```
1479-
* **Levels deeper than 'depth' get replaced with '...'.**
1479+
* **Levels deeper than 'depth' get replaced by '...'.**
14801480

14811481

14821482
Input

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
<div><h4 id="sometypesdonothavebuiltinnamessotheymustbeimported">Some types do not have built-in names, so they must be imported:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> types <span class="hljs-keyword">import</span> FunctionType, MethodType, LambdaType, GeneratorType
393393
</code></pre></div>
394394

395-
<div><h3 id="abstractbaseclasses">Abstract Base Classes</h3><p><strong>Each abstract base class specifies a set of virtual subclasses. This classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not.</strong></p><pre><code class="python language-python hljs"><span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> collections.abc <span class="hljs-keyword">import</span> Sequence, Collection, Iterable
395+
<div><h3 id="abstractbaseclasses">Abstract Base Classes</h3><p><strong>Each abstract base class specifies a set of virtual subclasses. These classes are then recognized by isinstance() and issubclass() as subclasses of the ABC, although they are really not.</strong></p><pre><code class="python language-python hljs"><span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> collections.abc <span class="hljs-keyword">import</span> Sequence, Collection, Iterable
396396
<span class="hljs-meta">&gt;&gt;&gt; </span>isinstance([<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>], Iterable)
397397
<span class="hljs-keyword">True</span>
398398
</code></pre></div>
@@ -1361,7 +1361,7 @@
13611361

13621362
<div><h2 id="exit"><a href="#exit" name="exit">#</a>Exit</h2><p><strong>Exits the interpreter by raising SystemExit exception.</strong></p><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> sys
13631363
sys.exit() <span class="hljs-comment"># Exits with exit code 0 (success).</span>
1364-
sys.exit(&lt;el&gt;) <span class="hljs-comment"># Prints object to stderr and exits with 1.</span>
1364+
sys.exit(&lt;el&gt;) <span class="hljs-comment"># Prints to stderr and exits with 1.</span>
13651365
sys.exit(&lt;int&gt;) <span class="hljs-comment"># Exits with passed exit code.</span>
13661366
</code></pre></div>
13671367

@@ -1378,7 +1378,7 @@
13781378
</code></pre></div>
13791379

13801380
<ul>
1381-
<li><strong>Levels deeper than 'depth' get replaced with '…'.</strong></li>
1381+
<li><strong>Levels deeper than 'depth' get replaced by '…'.</strong></li>
13821382
</ul>
13831383
<div><h2 id="input"><a href="#input" name="input">#</a>Input</h2><p><strong>Reads a line from the user input or pipe if present.</strong></p><pre><code class="python language-python hljs">&lt;str&gt; = input(prompt=<span class="hljs-keyword">None</span>)
13841384
</code></pre></div>

0 commit comments

Comments
 (0)