Changes between Initial Version and Version 1 of Ticket #25501, comment 3


Ignore:
Timestamp:
Oct 7, 2015, 11:58:57 PM (9 years ago)
Author:
Andrew Artajos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25501, comment 3

    initial v1  
    22
    33I am a new to contributing to Django. Do you have any steps on how to reproduce this?
     4
     5Nevermind, 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)
     12Traceback (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 "
     18TypeError: a class that defines __slots__ without defining __getstate__ cannot be pickled
     19}}}
     20
Back to Top