This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author idadesub
Recipients erickt, gvanrossum, idadesub
Date 2008-08-07.16:39:08
SpamBayes Score 2.71924e-06
Marked as misclassified No
Message-id <1ef034530808070939n53d038e4w7f2f2e40cdd0a576@mail.gmail.com>
In-reply-to <1218126642.66.0.78348419669.issue3514@psf.upfronthosting.co.za>
Content
> 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.
History
Date User Action Args
2008-08-07 16:39:09idadesubsetrecipients: + idadesub, gvanrossum, erickt
2008-08-07 16:39:09idadesublinkissue3514 messages
2008-08-07 16:39:08idadesubcreate