Re: cPickle vs pickle discrepancy

2009-01-08 Thread Zac Burns
Correct, 2.6.1 does not complain. If only I could upgrade! The workaround is obvious and I'll do that. Thanks for your help. -- Zachary Burns (407)590-4814 Aim - Zac256FL Production Engineer (Digital Overlord) Zindagi Games On Thu, Jan 8, 2009 at 11:34 AM, Carl Banks wrote: > On Jan 8, 12:27

Re: cPickle vs pickle discrepancy

2009-01-08 Thread Carl Banks
On Jan 8, 12:27 pm, "Zac Burns" wrote: > Thanks for your patience waiting for me to isolate the problem. > > | Package > --__init__.py ->empty > --Package.py ->empty > --Module.py >      import cPickle >      class C(object): >         pass >      def fail(): >         return cPickle.dumps(C(), -1

Re: cPickle vs pickle discrepancy

2009-01-08 Thread Zac Burns
Thanks for your patience waiting for me to isolate the problem. | Package --__init__.py ->empty --Package.py ->empty --Module.py import cPickle class C(object): pass def fail(): return cPickle.dumps(C(), -1) import Package.Module Package.Module.fail() The failure s

Re: cPickle vs pickle discrepancy

2009-01-06 Thread Gabriel Genellina
En Mon, 05 Jan 2009 23:04:30 -0200, Zac Burns escribió: I have a module that attempts to pickle classes defined in that module. I get an error of the form: PicklingError: Can't pickle : import of module Module.SubModule failed when using cPickle (protocol -1, python version 2.5.1). The module