New submission from ivank <i...@ludios.org>: This probably only applies to Windows. The redundant 'b' modes still work on Linux.
These worked on Windows in 2.6.4: open('test', 'rbb') open('test', 'wbb') open('test', 'abb') and possibly others. In 2.7a2, they throw ValueErrors like this: >>> open('test', 'wbb') Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Invalid mode ('wbb') It would be nice if the old behavior were preserved for backwards compatibility. Some programs append a 'b' indiscriminately. ---------- messages: 97674 nosy: ivank severity: normal status: open title: redundant open modes 'rbb', 'wbb', 'abb' no longer work on Windows type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7686> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com