Quantcast
Channel: ActiveState Community Site - ActivePython discussion
Viewing all articles
Browse latest Browse all 75

Python redis returns consequences with appended textual content to result

$
0
0

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='xxx.xxx.xxx.xxx', port=yyyy, db=0, password='$$$$$$$')

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

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?


Viewing all articles
Browse latest Browse all 75

Trending Articles