Skip to content

Commit ba71d43

Browse files
committed
Path
1 parent 9a83419 commit ba71d43

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ import re
362362
* **Search() and match() return None if they can't find a match.**
363363
* **Argument `'flags=re.IGNORECASE'` can be used with all functions.**
364364
* **Argument `'flags=re.MULTILINE'` makes `'^'` and `'$'` match the start/end of each line.**
365-
* **Argument `'flags=re.DOTALL'` makes dot also accept newline.**
365+
* **Argument `'flags=re.DOTALL'` makes dot also match the newline.**
366+
* **Only character that is considered a line separator is `'\n'`.**
366367
* **Use `r'\1'` or `'\\1'` for backreference.**
367368
* **Add `'?'` after an operator to make it non-greedy.**
368369

@@ -1579,7 +1580,7 @@ from glob import glob
15791580
```python
15801581
<str> = getcwd() # Returns the current working directory.
15811582
<str> = path.join(<path>, ...) # Joins two or more pathname components.
1582-
<str> = path.abspath(<path>) # Return an absolute path.
1583+
<str> = path.abspath(<path>) # Returns an absolute path.
15831584
```
15841585

15851586
```python

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@
469469
<li><strong>Search() and match() return None if they can't find a match.</strong></li>
470470
<li><strong>Argument <code class="python hljs"><span class="hljs-string">'flags=re.IGNORECASE'</span></code> can be used with all functions.</strong></li>
471471
<li><strong>Argument <code class="python hljs"><span class="hljs-string">'flags=re.MULTILINE'</span></code> makes <code class="python hljs"><span class="hljs-string">'^'</span></code> and <code class="python hljs"><span class="hljs-string">'$'</span></code> match the start/end of each line.</strong></li>
472-
<li><strong>Argument <code class="python hljs"><span class="hljs-string">'flags=re.DOTALL'</span></code> makes dot also accept newline.</strong></li>
472+
<li><strong>Argument <code class="python hljs"><span class="hljs-string">'flags=re.DOTALL'</span></code> makes dot also match the newline.</strong></li>
473+
<li><strong>Only character that is considered a line separator is <code class="python hljs"><span class="hljs-string">'\n'</span></code>.</strong></li>
473474
<li><strong>Use <code class="python hljs"><span class="hljs-string">r'\1'</span></code> or <code class="python hljs"><span class="hljs-string">'\\1'</span></code> for backreference.</strong></li>
474475
<li><strong>Add <code class="python hljs"><span class="hljs-string">'?'</span></code> after an operator to make it non-greedy.</strong></li>
475476
</ul>
@@ -1459,7 +1460,7 @@
14591460

14601461
<pre><code class="python language-python hljs">&lt;str&gt; = getcwd() <span class="hljs-comment"># Returns the current working directory.</span>
14611462
&lt;str&gt; = path.join(&lt;path&gt;, ...) <span class="hljs-comment"># Joins two or more pathname components.</span>
1462-
&lt;str&gt; = path.abspath(&lt;path&gt;) <span class="hljs-comment"># Return an absolute path.</span>
1463+
&lt;str&gt; = path.abspath(&lt;path&gt;) <span class="hljs-comment"># Returns an absolute path.</span>
14631464
</code></pre>
14641465
<pre><code class="python language-python hljs">&lt;str&gt; = path.basename(&lt;path&gt;) <span class="hljs-comment"># Returns final component.</span>
14651466
&lt;str&gt; = path.dirname(&lt;path&gt;) <span class="hljs-comment"># Returns path without final component.</span>

0 commit comments

Comments
 (0)