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
.. data:: linesep
The string used to separate (or, rather, terminate) lines on the current
platform. This may be a single character, such as ``'\n'`` for POSIX, or
multiple characters, for example, ``'\r\n'`` for Windows. Do not use
*os.linesep* as a line terminator when writing files opened in text mode (the
default); use a single ``'\n'`` instead, on all platforms.
The internet says:
Windows: '\r\n'
Mac (OS 9-): '\r'
Mac (OS 10+): '\n'
Unix/Linux: '\n'
Activity
pythongh-136087: Remove `\r` from documented `os.linesep` values
[-]Outdated `os.linesep` docs in `os.py`?[/-][+]Outdated `os.linesep` docs in `os.py`[/+]gh-136087: Remove `\r` from documented `os.linesep` values (#136088)
pythongh-136087: Remove `\r` from documented `os.linesep` values (pyt…
pythongh-136087: Remove `\r` from documented `os.linesep` values (pyt…
[3.14] gh-136087: Remove `\r` from documented `os.linesep` values (GH…
[3.13] gh-136087: Remove `\r` from documented `os.linesep` values (GH…
pythongh-136087: Remove `\r` from documented `os.linesep` values (pyt…
pythongh-136087: Remove `\r` from documented `os.linesep` values (pyt…
pythongh-136087: Remove `\r` from documented `os.linesep` values (pyt…
pythongh-136087: Remove `\r` from documented `os.linesep` values (pyt…
pythongh-136087: Remove `\r` from documented `os.linesep` values (pyt…