Comment #10 on issue 1506 by [email protected]: Python 3 support
http://code.google.com/p/robotframework/issues/detail?id=1506

initially i implemented Create Bytes as a workaround for
atest/testdata/standard_libraries/string/encode_decode.txt.
it uses Evaluate "...\\x..." to create bytes
and Decode Bytes To String with a string argument.
both don't work in python 3.
i also thought of using Encode String To Bytes.
but it needs the explicit latin encoding.
and as a default encoding utf8 really makes more sense.
in that Decode... case i also thought it looks a bit strange
to first encode something and then decode when you actually only want to decode.
i thought about adding explicit internal str-->bytes argument conversions
to keywords if actually bytes are needed.
but finally i decided that special Bytes Keywords are a cleaner way
to deal with the missing implicit bytes<-->str convertibility in python 3.
and also a cleaner way to deal with pure binary data
for writing stuff to or checking input from binary file, device or process streams.
for me encoding/decoding always implies working with textual data.
and Create Bytes could provide these additional python 3 bytes() like features
like creation from number sequences.


--
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