42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
From: srenner at lycosmail.com (srenner at lycosmail.com)
|
|
Date: Mon, 24 May 1999 19:10:30 GMT
|
|
Subject: Pickling Recalcitrance
|
|
Message-ID: <7ic874$dsi$1@nnrp1.deja.com>
|
|
X-UID: 1973
|
|
|
|
>From the 'Python Pocket Reference':
|
|
|
|
"PICKLE INTERFACE Converts (nearly) arbitrary Python objects to/from
|
|
serialized byte streams."
|
|
|
|
What is the (nearly) for? And why does this little caveat crop up
|
|
as follows:
|
|
|
|
File "./Lib/pickle.py", line 406, in save_inst
|
|
save(stuff)
|
|
File "./Lib/pickle.py", line 197, in save
|
|
f(self, object)
|
|
File "./Lib/pickle.py", line 357, in save_dict
|
|
save(value)
|
|
File "./Lib/pickle.py", line 158, in save
|
|
raise PicklingError, \
|
|
pickle.PicklingError: can't pickle 'instance method' objects
|
|
|
|
|
|
I should mention that almost all my objects do pickle, and I can look
|
|
closely at those which don't if I know what to look for.
|
|
|
|
'Virtual Reality -- it's like reality, only, like, more.'
|
|
|
|
sr
|
|
|
|
|
|
|
|
|
|
--== Sent via Deja.com http://www.deja.com/ ==--
|
|
---Share what you know. Learn what you don't.---
|
|
|
|
|
|
|
|
|