diff --git a/index.html b/index.html index 7edc053..1ffdd4e 100644 --- a/index.html +++ b/index.html @@ -1057,7 +1057,7 @@ Hello World!

Collection

class MyCollection:
     def __init__(self, a):
         self.a = a
@@ -1319,7 +1319,7 @@ value = args.<name>
 
  • 'encoding=None' means that the default encoding is used, which is platform dependent. Best practice is to use 'encoding="utf-8"' whenever possible.
  • 'newline=None' means all different end of line combinations are converted to '\n' on read, while on write all '\n' characters are converted to system's default line separator.
  • -
  • 'newline=""' means no conversions take place, but input is still broken into chunks by readline() and readlines() on '\n', '\r' and '\r\n'.
  • +
  • 'newline=""' means no conversions take place, but input is still broken into chunks by readline() and readlines() on either '\n', '\r' or '\r\n'.

Modes

  • 'r' - Read (default).
  • @@ -1330,7 +1330,7 @@ value = args.<name>
  • 'r+' - Read and write from the start.
  • 'a+' - Read and write from the end.
  • 't' - Text mode (default).
  • -
  • 'b' - Binary mode (must be paired with one of above).
  • +
  • 'b' - Binary mode.

Exceptions

  • 'FileNotFoundError' can be raised when reading with 'r' or 'r+'.
  • 'FileExistsError' can be raised when writing with 'x'.