Issue2011
Created on 2013-01-20.14:33:49 by irmen, last changed 2014-05-10.15:38:25 by zyasoft.
msg7584 (view) |
Author: Irmen de Jong (irmen) |
Date: 2013-01-20.14:33:46 |
|
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
|
msg8136 (view) |
Author: Jeff Allen (jeff.allen) |
Date: 2013-09-29.21:44:36 |
|
Analysis: The binascii functions should be made to accept objects bearing the buffer interface: that would probably fix it. test_binascii currently stands disabled in regrtest.
|
msg8327 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-05-04.20:12:01 |
|
I re-enabled test_binascii in trunk to make this visible
|
msg8368 (view) |
Author: Indra Talip (indra) |
Date: 2014-05-10.06:01:24 |
|
Pull request at https://bitbucket.org/jython/jython/pull-request/34/fixes-for-issue-2011-converts-binascii-to/diff should fix this issue.
|
msg8376 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-05-10.15:38:25 |
|
Merged https://bitbucket.org/jython/jython/pull-request/34/fixes-for-issue-2011-converts-binascii-to/diff as of 7239:d3bad92dfc5b
|
|
Date |
User |
Action |
Args |
2014-05-10 15:38:25 | zyasoft | set | status: open -> closed resolution: fixed messages:
+ msg8376 |
2014-05-10 06:01:24 | indra | set | nosy:
+ indra messages:
+ msg8368 |
2014-05-04 20:12:02 | zyasoft | set | nosy:
+ zyasoft messages:
+ msg8327 |
2013-11-01 23:59:11 | santa4nt | set | nosy:
+ santa4nt |
2013-09-29 21:44:36 | jeff.allen | set | nosy:
+ jeff.allen messages:
+ msg8136 |
2013-02-26 23:23:52 | amak | set | nosy:
+ amak |
2013-02-18 23:43:42 | fwierzbicki | set | nosy:
+ fwierzbicki |
2013-02-18 23:43:27 | fwierzbicki | set | versions:
+ Jython 2.7, - 2.7a2 |
2013-02-15 08:47:55 | mkz | set | nosy:
+ mkz |
2013-01-20 14:33:50 | irmen | create | |
|