There is plenty of sample code to accomplish this in a few lines of code. Is there a library in python 3.2 that can do this in one call? If not, what’s the minimum code to do this?
I’d be happy to get the results in any list-like (indexable and iterable) result…
Edit: You guys are fast! I like this one:
byte_collection = bytes(int(x, 16) for x in some_string.split())
1 Answer