[Ironpython-users] IronPython, Daily Digest 8/23/2014

CodePlex no_reply at codeplex.com
Sun Aug 24 09:26:16 CEST 2014


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] bytearray constructor should accept string

----------------------------------------------

ISSUES

1. [New issue] bytearray constructor should accept string
http://ironpython.codeplex.com/workitem/35493
User paweljasinski has proposed the issue:

"as reported on mailing list by Daniel Fernandez:

CPython 2.7.8
>>> hex_string = "deadbeef"
>>> hex_data = hex_string.decode("hex")
>>> hex_data
'\xde\xad\xbe\xef'
>>> bytearray(hex_data)
bytearray(b'\xde\xad\xbe\xef')

IronPython 2.7.5 Beta
 >>> hex_string = "deadbeef"
>>> hex_data = hex_string.decode("hex")
>>> hex_data
u'\xde\xad\xbe\xef'
>>> bytearray(hex_data)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unicode argument without an encoding

>>> bytearray(hex_data, 'hex')
bytearray(b'deadbeef')
"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140824/6fc99678/attachment.html>


More information about the Ironpython-users mailing list