Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6564cc

Browse files
committed
Paths
1 parent 6a91771 commit c6564cc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ from pathlib import Path
16551655

16561656
```python
16571657
<Path> = Path(<path> [, ...]) # Accepts strings, Paths and DirEntry objects.
1658-
<Path> = <path> / <path> [/ ...] # One of the two paths must be a Path object.
1658+
<Path> = <path> / <path> [/ ...] # First or second path must be a Path object.
16591659
```
16601660

16611661
```python
@@ -1674,7 +1674,7 @@ from pathlib import Path
16741674
```
16751675

16761676
```python
1677-
<iter> = <Path>.iterdir() # Returns dir contents as Path objects.
1677+
<iter> = <Path>.iterdir() # Returns directory contents as Path objects.
16781678
<iter> = <Path>.glob('<pattern>') # Returns Paths matching the wildcard pattern.
16791679
```
16801680

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<body>
5656
<header>
57-
<aside>February 17, 2022</aside>
57+
<aside>February 27, 2022</aside>
5858
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
5959
</header>
6060

@@ -1400,7 +1400,7 @@
14001400
</code></pre></div>
14011401

14021402
<pre><code class="python language-python hljs">&lt;Path&gt; = Path(&lt;path&gt; [, ...]) <span class="hljs-comment"># Accepts strings, Paths and DirEntry objects.</span>
1403-
&lt;Path&gt; = &lt;path&gt; / &lt;path&gt; [/ ...] <span class="hljs-comment"># One of the two paths must be a Path object.</span>
1403+
&lt;Path&gt; = &lt;path&gt; / &lt;path&gt; [/ ...] <span class="hljs-comment"># First or second path must be a Path object.</span>
14041404
</code></pre>
14051405
<pre><code class="python language-python hljs">&lt;Path&gt; = Path() <span class="hljs-comment"># Returns relative cwd. Also Path('.').</span>
14061406
&lt;Path&gt; = Path.cwd() <span class="hljs-comment"># Returns absolute cwd. Also Path().resolve().</span>
@@ -1413,7 +1413,7 @@
14131413
&lt;str&gt; = &lt;Path&gt;.suffix <span class="hljs-comment"># Returns final component's extension.</span>
14141414
&lt;tup.&gt; = &lt;Path&gt;.parts <span class="hljs-comment"># Returns all components as strings.</span>
14151415
</code></pre>
1416-
<pre><code class="python language-python hljs">&lt;iter&gt; = &lt;Path&gt;.iterdir() <span class="hljs-comment"># Returns dir contents as Path objects.</span>
1416+
<pre><code class="python language-python hljs">&lt;iter&gt; = &lt;Path&gt;.iterdir() <span class="hljs-comment"># Returns directory contents as Path objects.</span>
14171417
&lt;iter&gt; = &lt;Path&gt;.glob(<span class="hljs-string">'&lt;pattern&gt;'</span>) <span class="hljs-comment"># Returns Paths matching the wildcard pattern.</span>
14181418
</code></pre>
14191419
<pre><code class="python language-python hljs">&lt;str&gt; = str(&lt;Path&gt;) <span class="hljs-comment"># Returns path as a string.</span>
@@ -2884,7 +2884,7 @@
28842884

28852885

28862886
<footer>
2887-
<aside>February 17, 2022</aside>
2887+
<aside>February 27, 2022</aside>
28882888
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
28892889
</footer>
28902890

0 commit comments

Comments
 (0)