diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2011-05-31 19:27:44 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2011-05-31 19:27:44 -0700 |
commit | 8c75e85b9f14d65add7e7a27586aae2972220e1d (patch) | |
tree | 25b60d343940441c946e95f39b353fe87b5096b9 | |
parent | 0a7701e75ee591389ef615490f5d27b8c254df65 (diff) | |
download | redis-py-8c75e85b9f14d65add7e7a27586aae2972220e1d.tar.gz |
updating a few docstrings
-rw-r--r-- | redis/client.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py index 2c269eb..1ab02ca 100644 --- a/redis/client.py +++ b/redis/client.py @@ -771,7 +771,12 @@ class Redis(object): #### SORTED SET COMMANDS #### def zadd(self, name, value=None, score=None, **pairs): - "Add a member to a sorted set. If value and score" + """ + For each kwarg in ``pairs``, add that item and it's score to the + sorted set ``name``. + + The ``value`` and ``score`` arguments are deprecated. + """ all_pairs = [] if value is not None or score is not None: if value is None or score is None: @@ -882,7 +887,7 @@ class Redis(object): ``start`` and ``num`` can be negative, indicating the end of the range. ``withscores`` indicates to return the scores along with the values - as a dictionary of value => score + The return type is a list of (value, score) pairs """ pieces = ['ZREVRANGE', name, start, num] if withscores: |