On 2012-10-06, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote:
> On Fri, 5 Oct 2012 20:27:36 -0700 (PDT), palmeira <palme...@gmail.com>
> declaimed the following in gmane.comp.python.general:
>
>> 
>> #WRITE
>> fb=open('testOUT.bin')
>
>       Unless you specify otherwise, open() defaults to read-only

It also defaults to 'text' mode which does cr/lf translaction.  That
will break both reads and writes on any binary file containing 0x0a
and 0x0d bytes.

-- 
Grant
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to