[ros-users] [Discourse.ros.org] [Client Libraries] Python3 and strings
Kartik Mohta
ros.discourse at gmail.com
Mon Aug 14 05:44:13 UTC 2017
Well, you can make both Python 2 & 3 string msg types be bytes with a note that bytes is the same as str in Python2.
$ python2
Python 2.7.13 (default, Jul 21 2017, 03:24:34)
>>> a = str('123')
>>> type(a)
<type 'str'>
>>> a = bytes('123')
>>> type(a)
<type 'str'>
---
[Visit Topic](https://discourse.ros.org/t/python3-and-strings/2392/10) or reply to this email to respond.
More information about the ros-users
mailing list