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
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