diff --git a/README.md b/README.md index 21adf66..346c7e7 100644 --- a/README.md +++ b/README.md @@ -1395,7 +1395,7 @@ BaseException | +-- RecursionError # Raised when the the maximum recursion depth is exceeded. +-- TypeError # Raised when an argument is of wrong type. +-- ValueError # When an argument is of right type but inappropriate value. - +-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails. + +-- UnicodeError # Raised when encoding/decoding strings from/to bytes fails. ``` ### User-defined Exceptions @@ -1494,7 +1494,7 @@ Open * **`'b'` - Binary mode.** ### Exceptions -* **`'FileNotFoundError'` can be risen when reading with `'r'` or `'r+'`.** +* **`'FileNotFoundError'` can be risen when reading with `'r'` or `'r+'`.** * **`'FileExistsError'` can be risen when writing with `'x'`.** * **`'IsADirectoryError'` and `'PermissionError'` can be risen by any.** * **`'OSError'` is the parent class of all listed exceptions.** @@ -1550,7 +1550,7 @@ from glob import glob ``` ```python - = listdir('') # List of filenames located at 'path'. + = listdir('') # List of filenames located at 'path'. = glob('') # Filenames matching the wildcard pattern. ``` @@ -1805,7 +1805,7 @@ Bytes = b'' # Only accepts ASCII characters and \x00 - \xff. = [] # Returns int in range from 0 to 255. = [] # Returns bytes even if it has only one element. - = .join() # Joins elements using bytes object as separator. + = .join() # Joins elements using bytes object as separator. ``` ### Encode diff --git a/index.html b/index.html index b2a7d2a..42e9709 100644 --- a/index.html +++ b/index.html @@ -1284,7 +1284,7 @@ LogicOp = Enum('LogicOp', {User-defined Exceptions
class MyError(Exception):
@@ -1364,7 +1364,7 @@ value = args.<name>
 
 

Exceptions

    -
  • 'FileNotFoundError' can be risen when reading with 'r' or 'r+'.
  • +
  • 'FileNotFoundError' can be risen when reading with 'r' or 'r+'.
  • 'FileExistsError' can be risen when writing with 'x'.
  • 'IsADirectoryError' and 'PermissionError' can be risen by any.
  • 'OSError' is the parent class of all listed exceptions.
  • @@ -1405,7 +1405,7 @@ value = args.<name> <bool> = path.isfile('<path>') <bool> = path.isdir('<path>')
-
<list> = listdir('<path>')         # List of filenames located at 'path'. 
+
<list> = listdir('<path>')         # List of filenames located at 'path'.
 <list> = glob('<pattern>')         # Filenames matching the wildcard pattern.
 

Pathlib

@@ -1595,7 +1595,7 @@ cursor.execute('<query>', <dict/namedt
<bytes> = b'<str>'                       # Only accepts ASCII characters and \x00 - \xff.
 <int>   = <bytes>[<index>]               # Returns int in range from 0 to 255.
 <bytes> = <bytes>[<slice>]               # Returns bytes even if it has only one element.
-<bytes> = <bytes>.join(<coll_of_bytes>)  # Joins elements using bytes object as separator. 
+<bytes> = <bytes>.join(<coll_of_bytes>)  # Joins elements using bytes object as separator.
 

Encode

<bytes> = <str>.encode('utf-8')          # Or: bytes(<str>, 'utf-8')