From ba71d437535adbf02ae6eef26d2cbfeaddd7d31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 5 Feb 2020 23:37:05 +0100 Subject: [PATCH] Path --- README.md | 5 +++-- index.html | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d015455..53ba755 100644 --- a/README.md +++ b/README.md @@ -362,7 +362,8 @@ import re * **Search() and match() return None if they can't find a match.** * **Argument `'flags=re.IGNORECASE'` can be used with all functions.** * **Argument `'flags=re.MULTILINE'` makes `'^'` and `'$'` match the start/end of each line.** -* **Argument `'flags=re.DOTALL'` makes dot also accept newline.** +* **Argument `'flags=re.DOTALL'` makes dot also match the newline.** +* **Only character that is considered a line separator is `'\n'`.** * **Use `r'\1'` or `'\\1'` for backreference.** * **Add `'?'` after an operator to make it non-greedy.** @@ -1579,7 +1580,7 @@ from glob import glob ```python = getcwd() # Returns the current working directory. = path.join(, ...) # Joins two or more pathname components. - = path.abspath() # Return an absolute path. + = path.abspath() # Returns an absolute path. ``` ```python diff --git a/index.html b/index.html index 889d713..5813bbf 100644 --- a/index.html +++ b/index.html @@ -469,7 +469,8 @@ to_exclusive = <range>.stop
  • Search() and match() return None if they can't find a match.
  • Argument 'flags=re.IGNORECASE' can be used with all functions.
  • Argument 'flags=re.MULTILINE' makes '^' and '$' match the start/end of each line.
  • -
  • Argument 'flags=re.DOTALL' makes dot also accept newline.
  • +
  • Argument 'flags=re.DOTALL' makes dot also match the newline.
  • +
  • Only character that is considered a line separator is '\n'.
  • Use r'\1' or '\\1' for backreference.
  • Add '?' after an operator to make it non-greedy.
  • @@ -1459,7 +1460,7 @@ value = args.<name>
    <str>  = getcwd()                   # Returns the current working directory.
     <str>  = path.join(<path>, ...)     # Joins two or more pathname components.
    -<str>  = path.abspath(<path>)       # Return an absolute path.
    +<str>  = path.abspath(<path>)       # Returns an absolute path.
     
    <str>  = path.basename(<path>)      # Returns final component.
     <str>  = path.dirname(<path>)       # Returns path without final component.