Message7584
 
            
            
            
 
   
   
 
 
  
      binascii doesn't work with bytearray and memoryview types:
>>> import binascii
>>>
>>> binascii.b2a_base64(bytearray(b"hello"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: b2a_base64(): 1st arg can't be coerced to String
>>>
>>> binascii.b2a_base64(memoryview(b"hello"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: b2a_base64(): 1st arg can't be coerced to String
>>>
The above does work correctly in cPython 2.7  | 
   
  
 
|
 
| Date | 
User | 
Action | 
Args | 
 
| 2013-01-20 14:33:50 | irmen | set | recipients:
  + irmen |  
| 2013-01-20 14:33:50 | irmen | set | messageid: <1358692430.18.0.978719369694.issue2011@psf.upfronthosting.co.za> |  
| 2013-01-20 14:33:48 | irmen | link | issue2011 messages |  
| 2013-01-20 14:33:47 | irmen | create |  |  
 
 
 |