On Wed, 7 Apr 2021 23:44:18 +0900
Inada Naoki
On Wed, Apr 7, 2021 at 11:29 PM Miro HronĨok
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:
* https://bugs.python.org/issue43712 * https://bugs.python.org/issue5758 * https://bugs.python.org/issue36865
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(). Regards Antoine.