| 4 | |
| 5 | Nevermind, I managed to reproduce it with this: |
| 6 | |
| 7 | {{{ |
| 8 | |
| 9 | >>> from psycopg2.extras import NumericRange |
| 10 | >>> be = NumericRange(lower=300, upper=350) |
| 11 | >>> cache.set('range', be) |
| 12 | Traceback (most recent call last): |
| 13 | File "<console>", line 1, in <module> |
| 14 | File "/home/aartajos/Projects/Django/django/django/core/cache/backends/filebased.py", line 58, in set |
| 15 | f.write(zlib.compress(pickle.dumps(value), -1)) |
| 16 | File "/home/aartajos/.virtualenvs/djangodev2/lib/python2.7/copy_reg.py", line 77, in _reduce_ex |
| 17 | raise TypeError("a class that defines __slots__ without " |
| 18 | TypeError: a class that defines __slots__ without defining __getstate__ cannot be pickled |
| 19 | }}} |
| 20 | |