Erick Tryzelaar <[EMAIL PROTECTED]> added the comment: > Guido van Rossum <[EMAIL PROTECTED]> 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. ---------- nosy: +idadesub _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3514> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com