joblib/joblib — pull request #20 by kcarnold (2011-12-22 19:51:45+00:00)
Title: Improve behavior for ndarray subclasses

Most of the problems with ndarray subclasses are not joblib's fault. But a couple minor things were. This fixes the following:

1. Subclass saving wasn't actually being fully tested, due to a typo.
2. Subclass saving failure resulted in worrisome tracebacks being printed when in fact everything probably succeeded.
3. The list of filenames got duplicates in that case.

The one remaining problem is ultimately numpy's fault: if you don't override ```tofile```, you'll silently get a plain ndarray back when you load from joblib. But if you had implemented ```__reduce__```, the same code would have worked before you switched to joblib. So I'll add a third commit here that takes a conservative but still possibly controversial approach to solving this.