Skip to content

Commit e76785f

Browse files
committed
Paths
1 parent 036b94e commit e76785f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ from pathlib import Path
16971697
```
16981698

16991699
```python
1700-
<str> = str(<Path>) # Returns path as a string.
1700+
<str> = str(<Path>) # Returns path as str. Also <Path>.as_uri().
17011701
<file> = open(<Path>) # Also <Path>.read/write_text/bytes(<args>).
17021702
```
17031703

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<body>
5858
<header>
59-
<aside>May 12, 2025</aside>
59+
<aside>May 13, 2025</aside>
6060
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
6161
</header>
6262

@@ -1442,7 +1442,7 @@
14421442
<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>
14431443
&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>
14441444
</code></pre>
1445-
<pre><code class="python language-python hljs">&lt;str&gt; = str(&lt;Path&gt;) <span class="hljs-comment"># Returns path as a string.</span>
1445+
<pre><code class="python language-python hljs">&lt;str&gt; = str(&lt;Path&gt;) <span class="hljs-comment"># Returns path as str. Also &lt;Path&gt;.as_uri().</span>
14461446
&lt;file&gt; = open(&lt;Path&gt;) <span class="hljs-comment"># Also &lt;Path&gt;.read/write_text/bytes(&lt;args&gt;).</span>
14471447
</code></pre>
14481448
<div><h2 id="oscommands"><a href="#oscommands" name="oscommands">#</a>OS Commands</h2><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os, shutil, subprocess
@@ -2945,7 +2945,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
29452945

29462946

29472947
<footer>
2948-
<aside>May 12, 2025</aside>
2948+
<aside>May 13, 2025</aside>
29492949
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
29502950
</footer>
29512951

0 commit comments

Comments
 (0)