summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Reifschneider <jafo@tummy.com>2009-06-05 17:32:27 -0600
committerSean Reifschneider <jafo@tummy.com>2009-06-05 17:32:27 -0600
commitc8702b6808d48737fd6c55d455648bdd3fc845ef (patch)
tree125f4245c05b63ff8ad65c192302f054631585a2
parentd4655f20718a409059c0a00584de8c08e81374f7 (diff)
downloadpython-memcached-c8702b6808d48737fd6c55d455648bdd3fc845ef.tar.gz
Fixing set example in docstring.
-rw-r--r--ChangeLog3
-rw-r--r--memcache.py2
-rw-r--r--memcache.pycbin37528 -> 36875 bytes
3 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 037c120..1bab6e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+ * Fix in the docstring for how to use the "set" method. Found and fixed
+ by William McVey
+
Thu, 02 Apr 2009 13:37:49 -0600 Sean Reifschneider <jafo@tummy.com>
* Version 1.44
diff --git a/memcache.py b/memcache.py
index c5fcb45..721a5dc 100644
--- a/memcache.py
+++ b/memcache.py
@@ -32,7 +32,7 @@ The standard way to use memcache with a database is like this::
obj = mc.get(key)
if not obj:
obj = backend_api.get(...)
- mc.set(obj)
+ mc.set(key, obj)
# we now have obj, and future passes through this code
# will use the object from the cache.
diff --git a/memcache.pyc b/memcache.pyc
index fac6f6b..5efe20c 100644
--- a/memcache.pyc
+++ b/memcache.pyc
Binary files differ