Python 3 version does not handle unicode in delete.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Memcached |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Non-ascii keys are not handled in delete:
>>> import memcache
>>> memcache.__file__
'/home/
>>> c = memcache.
>>> c.set("føøk", 42, 0)
True
>>> c.get("føøk")
42
>>> c.delete("føøk")
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/
server.
File "/home/
self.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 8-9: ordinal not in range(128)
The Python 3 version is done by Eren Güven, you will need to report this issue to them unless it impacts this version as well.