Comment #4 on issue 1581 by user.stefanz: Bytes Library
http://code.google.com/p/robotframework/issues/detail?id=1581

Well, these different Create Bytes Keywords just evolved...
I started with Create Bytes.
Then I thought if you want to define some bytes only by numbers
it is some overhead to always put them in ${...}.
Yes, you could automatically convert number string literals,
but what if you really want to use some number string as a string?

==> Create Bytes From Numbers,
which just tries to convert all arguments to ints,
supporting 0x/0o/0b prefixes for number strings.

Then I thought that it's quite common to define a byte string in hex.
But even with Create Bytes From Numbers
you would need to separate every single byte and prefix it with 0x.
If you get your hex string from some other input, some file, some process...
you would need to explicitly split and prefix or manually convert everything. `bytearray` and Python 3's `bytes` type also have a static .fromhex() method.

==> Create Bytes From Hex

Finally I thought if there is From Hex why not also From Binary? :)


--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to