Created
April 1, 2010 00:06
-
-
Save kmerenkov/351125 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import redis | |
>>> db = redis.Redis() | |
>>> db.flushall() | |
True | |
>>> db.set(u"фу".encode('utf-8'), u"бар".encode('utf-8')) | |
True | |
>>> db.keys('*') | |
['\xd1\x84\xd1\x83'] | |
>>> print db.keys('*')[0].decode('utf-8') | |
фу | |
>>> db.get(db.keys('*')[0]) | |
'\xd0\xb1\xd0\xb0\xd1\x80' | |
>>> print db.get(db.keys('*')[0]) | |
бар | |
>>> |
- take HEAD version of redis
- take HEAD version of redis-py
Костя, HEAD это локальная ссылка на активный бранч или комит.
Ну ты спулляй и вот головную версию скомпилируй/установи :-)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't work, how to fix?!????????