On Wed, 7 Apr 2021 23:44:18 +0900 Inada Naoki firstname.lastname@example.org wrote:
On Wed, Apr 7, 2021 at 11:29 PM Miro Hrončok email@example.com wrote:
On 07. 04. 21 14:53, Inada Naoki wrote:
'U' mode was removed once and resurrected. https://bugs.python.org/issue39674
As far as I can see, it is postponed to Python 3.10. Am I right? Can we remove 'U' mode in Python 3.10?
What is the benefit of doing it? Is the current compatibility layer to do nothing when "U" is passed difficult to maintain?
I am working on fileinput module:
It supports deprecated 'U' mode for now, same to builtin open(). When I read and write code and tests, I need to pay attention about all allowed combination of mode string.
You can already remove 'U' from fileinput with necessarily removing it from open().