Author ezio.melotti
Recipients chepner, ezio.melotti, michael.foord, seanmccully
Date 2014-08-06.09:18:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407316730.96.0.0731095073986.issue22138@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the patch, however I don't think this is a robust solution.
Other objects might have undeletable attributes too.

The current code can delete an attribute without restoring it so an easy solution would be removing the hasattr() check, but that seems to be there to deal with proxy objects, so doing that will probably break them (Lib/unittest/test/testmock/testpatch.py:821 seems to test proxy object).
History
Date User Action Args
2014-08-06 09:18:51ezio.melottisetrecipients: + ezio.melotti, michael.foord, chepner, seanmccully
2014-08-06 09:18:50ezio.melottisetmessageid: <1407316730.96.0.0731095073986.issue22138@psf.upfronthosting.co.za>
2014-08-06 09:18:50ezio.melottilinkissue22138 messages
2014-08-06 09:18:50ezio.melotticreate