Ezio Melotti <ezio.melo...@gmail.com> added the comment:

With 2.7 I can reproduce the issue on Windows 7 (i.e. I get a ValueError).
However I'm not sure how common is to add a 'b' indiscriminately:
1) most of the times the modes are written as strings, and not generated 
automatically;
2) even if generated, checking if there's a 'b' is as easy as doing "if 'b' not 
in mode: mode = mode + 'b'".

For consistency both Windows and Linux should have the same behavior, and if 
the extra 'b' is not so common I think it's better if both raise an error.

----------
components: +Interpreter Core, Windows
nosy: +ezio.melotti
stage: needs patch -> test needed

_______________________________________
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

Reply via email to