[ros-users] [Discourse.ros.org] [Client Libraries] Python3 a…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kartik Mohta via ros-users
Date:  
To: ros-users
Subject: [ros-users] [Discourse.ros.org] [Client Libraries] Python3 and strings


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.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>