Unpickling from strings

Doug Fort dougfort at downright.com
Wed Mar 14 02:20:39 CET 2001


Perhaps it is getting garbled in transmission.  We quote ours:

    urllib.quote_plus(cPickle.dumps(self._statsdict))

--
Doug Fort dougfort at downright.com
Senior Meat Manager
Downright Software LLC
http://www.dougfort.net

"Marcin Chady" <marcin.chady at ntlworld.com> wrote in message
news:qHxr6.19658$pR3.3830844 at news2-win.server.ntlworld.com...
> I have pickled an object into a string and saved it in an hidden HTML form
> field, so that I can recover the state when the form is resubmitted.
> However, when the form comes back and I try to unpickle my object I get an
> error saying that the module in which the object's class was originally
> defined is unknown, even though the CGI script which does the unpickling
has
> already imported the module!
>
> Has anyone got an idea why it is?
>
> Marcin
>
>





More information about the Python-list mailing list