Comment #11 on issue 1506 by pekka.klarck: Python 3 support
http://code.google.com/p/robotframework/issues/detail?id=1506

I can see Create Bytes could be useful in some cases, especially when not dealing with textual data. It probably should work both with string (Unicode) and integer inputs and look something like below:

def create_bytes(*args):
... return ''.join(''.join(chr(ord(c)) for c in arg) if isinstance(arg, basestring) else chr(arg) for arg in args)
...
create_bytes(0, 1, 80, 228)
'\x00\x01P\xe4'
create_bytes(u'hyv\xe4', 32, '\xe4iti', '!')
'hyv\xe4 \xe4iti!'

This should be submitted as a separate issue, though.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to