I just noticed that the universal newline feature of file operations seems to be on its way out.
The documentation for Python 3.5 open
's mode
parameter indicates that it's deprecated:
'U'
universal newlines mode (deprecated)
At least as far back as Python 3.2, open
contains a similar "backwards compatibility only" warning when documenting the usage of the mode
argument:
'U'
universal newlines mode (for backwards compatibility; should not be used in new code)
Even in Python 2.7, a similar warning is placed in the documentation of io.open
.
What's the reason for this?
U
flag toopen
'smode
parameter is deprecated in Python 3.3 and removed entirely in Python 3.11