Aquí está el código que tengo:¿Cómo recojo un objeto?
import pickle
alist = ['here', 'there']
c = open('config.pck', 'w')
pickle.dump(alist, c)
y este es el error que recibo:
Traceback (most recent call last):
File "C:\pickle.py", line 1, in ?
import pickle
File "C:\pickle.py", line 6, in ?
pickle.dump(alist, c)
AttributeError: 'module' object has no attribute 'dump'
que hay de nuevo? Estoy usando python 2.4 en Windows XP
http://en.wikipedia.org/wiki/Pickling ... –
Sitio incorrecto, intente http://cooking.stackexchange.com/ –