[issue37330] open(): remove 'U' mode, deprecated since Python 3.3

Andrew Bartlett report at bugs.python.org
Tue Mar 3 21:01:25 EST 2020


Andrew Bartlett <abartlet at samba.org> added the comment:

I think we are speaking past each other. 

Yes, Python 2 is no longer being changed, which is awesome as we need for fear breakage of the older builds that use that for the build system.

The issue isn't the particular language feature, or that there is no way to further adapt code, but that a valid build script that operates correctly on Python 3.8 will no longer, without warning to us, operate on Python 2.9 or at best 2.10. 

Thankfully the only Samba versions with support for Python3 are still in maintenance, so course I've back-ported patches to the tip of each release branch to work around this change.  But again, that doesn't help when I need to build an arbitrary git revision in the future. 

(That warnings were available, if we knew were to look, is an entirely moot point at this stage).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37330>
_______________________________________


More information about the Python-bugs-list mailing list