[issue2091] file accepts 'rU+' as a mode

Eli Bendersky report at bugs.python.org
Sat May 21 11:29:43 CEST 2011


Eli Bendersky <eliben at gmail.com> added the comment:

In Python 3, the documentation no longer mentions that 'U' should not work with '+' (or 'w' or 'a', for that matter), and the code throws ValueError if 'U' is used with 'w' or 'a', but not '+'.

On the other hand, the documentation *does* mention that 'U' is for backwards compatibility and shouldn't be used with new code.

In light of this, how do you suggest to proceed with this issue?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2091>
_______________________________________


More information about the Python-bugs-list mailing list