Python redis returns consequences with appended textual content to result

Posted by soujanyanaganuri on 2017-07-18 22:35

I just commenced to apply redis with python, from command line and in jupyter notebooks and i am getting appended text to each locations. code is as follows:

import redis
r = redis.StrictRedis(host='', port=yyyy, db=0, password='$$$$$$$')

r.hmset('hmfoo', { 'name': 'myname', 'username': 'myusername'})

r.hget('hmfoo', 'name')
b'myname' <----- why is the 'b' appended here??

it really works as you assume with the proper values stored in redis and the whole thing, simply now not positive why the b is displaying on the start of the text?