Re: Bug in cPickle with packages and 'object' inherited class

2007-07-29 Thread Gabriel Genellina
En Wed, 25 Jul 2007 17:32:46 -0300, Conrado PLG <[EMAIL PROTECTED]> escribió: > Say you have this structure: > > pna/ > __init__.py > model.py > > > __init__.py is empty. > > model.py is: > > > import cPickle as pickle > > class A(object): > pass > > def serialize(): > pickle.dum

Bug in cPickle with packages and 'object' inherited class

2007-07-25 Thread Conrado PLG
Say you have this structure: pna/ __init__.py model.py __init__.py is empty. model.py is: import cPickle as pickle class A(object): pass def serialize(): pickle.dump(A(), open('temp.dat', 'wb')) Now open a python interpreter on the root directory of that structure and type