pylibmc 0.9
A big hand goes out to me. And not for releasing a new version of my own software, but for forgetting to tell anyone about it!
pylibmc 0.9.1 adds a get_stats method, some more compatibility niceness, and the most oft requested feature: per-error exceptions.
Get it while it's hot! Wait, right, I missed my release announcement.
And this is what I mean by "per-error exceptions":
>>> import pylibmc >>> mc = pylibmc.Client(["127.0.0.1"]) >>> try: ... mc.incr("boegen", 123) ... except pylibmc.NotFound, e: ... print "Oi!", e ... Oi! error 16 from memcached_increment: NOT FOUND >>>
example of code that causes memory leaks:
from pylibmc import Client
mc = Client(['localhost:11211'])
data = {}
idx = 0
while True:
data['1'] = idx
a = mc.set_multi(data)
idx += 1
I've run into an issue while trying to switch from python-memcached to pylibmc:
client.get_multi([])
>> SystemError: error return without exception set
Both setmulti and deletemulti seem to accept [] as an argument.
