You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All other operations pass the value through the _encode method to convert ints, floats, and unicode into the proper string object with appropriate charset. smove does not do this, and passes the value (named member) directly into the command. This results in an AttributeError if the member being passed in is not a string type. Further errors may also occur if the type is a unicode with unsupported characters, or is a list/set/dict.
e.g.:
r = redis.Redis()
r.smove('set', 'list', 3)
Traceback (most recent call last):
File "", line 1, in
File "redis.py", line 808, in smove
src, dst, len(member), member
TypeError: object of type 'int' has no len()
The text was updated successfully, but these errors were encountered:
This issue has been resolved in the "newapi" branch of redis-py. I plan on merging this branch into master in the next day or two. I'll make an official release at that time.
All other operations pass the value through the _encode method to convert ints, floats, and unicode into the proper string object with appropriate charset. smove does not do this, and passes the value (named member) directly into the command. This results in an AttributeError if the member being passed in is not a string type. Further errors may also occur if the type is a unicode with unsupported characters, or is a list/set/dict.
e.g.:
r = redis.Redis()
r.smove('set', 'list', 3)
Traceback (most recent call last):
File "", line 1, in
File "redis.py", line 808, in smove
src, dst, len(member), member
TypeError: object of type 'int' has no len()
The text was updated successfully, but these errors were encountered: