[ros-users] [Discourse.ros.org] [Client Libraries] Python3 and strings

Kartik Mohta ros.discourse at gmail.com
Tue Aug 8 07:18:26 UTC 2017



Yes you're right, that statement doesn't seem to be correct.

As per your recommendation, I think mentioning utf-8 string as the serialization type would be fine (though not sure if that is the right thing with the C++ client library), but it would be better to use/recommend the str type for Python2 since there is no automatic decoding into a unicode string for Python 2. So it would just be type str for both Python 2 and 3.





---
[Visit Topic](https://discourse.ros.org/t/python3-and-strings/2392/6) or reply to this email to respond.




More information about the ros-users mailing list