zzzeek / sqla_issue_test

1 stars 0 forks source link

Pickle and relations (uselist=True) #267

Closed zzzeek closed 6 years ago

zzzeek commented 18 years ago

Originally reported by: Anonymous


(original reporter: evan) Thanks for fixing #265 so fast!

I still couldn't pickle my objects, though. Seems the attached test breaks pickle:

Traceback (most recent call last):
  File "pickle_.py", line 42, in ?
    p=pickle.dumps(j)
  File "/usr/lib/python2.4/copy_reg.py", line 69, in _reduce_ex
    raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle function objects

zzzeek commented 18 years ago

Original comment by Anonymous:


(original author: evan) No trouble now. Thanks much.

zzzeek commented 18 years ago

Original comment by Michael Bayer (Bitbucket: zzzeek, GitHub: zzzeek):


OK, made some more adjustments to the __getstate__ on InstrumentedList in changeset:1769. give it another try.