You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the file pointed by this path and return a file object, as
478
483
the built-in open() function does.
479
484
480
485
:param mode: The mode to open the file in.
481
-
:default mode: ``"r"`` (read only)
486
+
:default mode: ``'r'`` (read only)
482
487
:type mode: str
483
488
:param buffering:
484
489
:type buffering: int
485
490
:param encoding:
486
491
:type encoding: str
487
492
:param errors:
488
493
:param newline:
494
+
:default newline: `universal newlines <https://docs.python.org/3/glossary.html#term-universal-newlines>`__ for reading, Unix line endings (``LF``) for writing.
489
495
490
496
:return:
491
497
492
498
.. versionadded:: 0.3.8
499
+
500
+
.. versionchanged:: 0.5.1
501
+
502
+
Defaults to Unix line endings (``LF``) on all platforms.
0 commit comments