Message70837
> Guido van Rossum <guido@python.org> added the comment:
>
> Does this occur in 2.6 or 2.5?
It doesn't in python 2.5. The RuntimeError manages to get printed out.
I don't have 2.6 installed to test against at the moment. Here's the
equivalent code:
########################
import pickle
class Foo:
def __getattr__(self, key):
self.foo
f = open('foo.db', 'w')
foo = Foo()
pickle.dump(foo, f)
f.close()
f = open('foo.db', 'r')
pickle.load(f)
f.close()
########################
This also happens with cPickle. |
|
Date |
User |
Action |
Args |
2008-08-07 16:39:09 | idadesub | set | recipients:
+ idadesub, gvanrossum, erickt |
2008-08-07 16:39:09 | idadesub | link | issue3514 messages |
2008-08-07 16:39:08 | idadesub | create | |
|