[Twisted-Python] Re: ftpClient.py, retrieveFile, and line	ending issues
    Itamar Shtull-Trauring 
    itamar at itamarst.org
       
    Wed Dec  7 10:09:31 MST 2005
    
    
  
On Wed, 2005-12-07 at 09:41 +0000, Michael Hudson wrote:
> >>> import array
> >>> open('foo', 'w').write(array.array('b', [0]))
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: argument 1 must be string or read-only character buffer, not array.array
> >>> open('foo', 'wb').write(array.array('b', [0]))
OK then, "wb" does nothing on Unix modulo Python doing wacky shit ;)
    
    
More information about the Twisted-Python
mailing list