lericson/pylibmc — pull request #102 by bukzor (2012-10-03 02:01:27+00:00)
Title: Allow subclasses to override the deserialization logic

This matches https://github.com/lericson/pylibmc/issues/96

I've added a unit test which demonstrates how this can be used to transform unpickling errors to cache misses. This is implemented by refactoring the `_PylibMC_Unpickle` function to be a method: `Client.deserialize`.

I imagine the next logical step is to do the same refactorization for `_PylibMC_Pickle` / `serialize`, but the project is in a fully usable state as-is, and this change closes our issue. Allowing overrides to both serialize/deserialize will close a couple of your other issues: "Custom Pickler implementations", "It should be possible to specify pickle protocol version".