cannot pickle object returned by urllib2.urlopen()

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Tue Nov 11 22:25:57 EST 2008


On Wed, 12 Nov 2008 11:00:26 +0800, scsoce wrote:

> got a exception:  "a class that defines __slots__ without defining
> __getstate__ cannot be pickled "
> why?
> and is there any other dump method but for pickle to store the kind of
> object ?

I can't answer either of your questions, but why are you trying to pickle 
an open connection to a (possibly remote) URL? I can't imagine how that 
could possibly work even in principle.



-- 
Steven



More information about the Python-list mailing list