This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ivank
Recipients ivank
Date 2010-01-13.00:28:54
SpamBayes Score 2.095672e-05
Marked as misclassified No
Message-id <1263342536.73.0.0502696558207.issue7686@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-01-13 00:28:56ivanksetrecipients: + ivank
2010-01-13 00:28:56ivanksetmessageid: <1263342536.73.0.0502696558207.issue7686@psf.upfronthosting.co.za>
2010-01-13 00:28:55ivanklinkissue7686 messages
2010-01-13 00:28:54ivankcreate