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 ggenellina
Recipients ggenellina, mwm
Date 2009-03-14.00:28:05
SpamBayes Score 3.1179405e-07
Marked as misclassified No
Message-id <1236990487.31.0.614177826821.issue5370@psf.upfronthosting.co.za>
In-reply-to
Content
I think that trying to emulate all "getattr" details in the middle of 
unpickling (but omiting calls to __getattr__) isn't the right thing to 
do. What if in some cases __getattr__ (or __getattribute__) *does* the 
right thing, but pickle doesn't call it? Other people would be 
rightfully upset.

There should be a warning note about __getattr__ in the pickle 
documentation, and people should be encouraged to write __getattr__ in 
a more robust way, if class instances are meant to be pickled.
History
Date User Action Args
2009-03-14 00:28:07ggenellinasetrecipients: + ggenellina, mwm
2009-03-14 00:28:07ggenellinasetmessageid: <1236990487.31.0.614177826821.issue5370@psf.upfronthosting.co.za>
2009-03-14 00:28:06ggenellinalinkissue5370 messages
2009-03-14 00:28:05ggenellinacreate