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 terry.reedy
Recipients kbk, roger.serwy, serhiy.storchaka, taleinat, terry.reedy
Date 2014-02-05.13:38:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391607531.08.0.304441431091.issue20167@psf.upfronthosting.co.za>
In-reply-to
Content
I tried all three versions both installed and recent repository builds and verified that the overt issue is limited to 3.4. I agree that the exception message suggests stopping with the first exception. Since there is a small cost to try: and break, I am inclined to move the try back out of the loop. The only thing it could mask is a problem with self.handlerids, and I would expect that if that is corrupted or missing, there would be problems before shutdown.

I know that in 3.4, shutdown order has been modified and the wording of the warning was discussed on pydev. I do not know (and do not care at the moment) if either ignoring __del__ exceptions or warning about them is new in 3.4. What I do remember from the discussion is agreement that 1. __del__ exceptions should be caught so shutdown can continue; 2. a warning should be given in case the exception indicates a bug in __del__; and 3. __del__ writers are responsible to catch exceptions that do not indicate a bug, so as to avoid the warning. So I am inclined to backport to all versions.
History
Date User Action Args
2014-02-05 13:38:51terry.reedysetrecipients: + terry.reedy, kbk, taleinat, roger.serwy, serhiy.storchaka
2014-02-05 13:38:51terry.reedysetmessageid: <1391607531.08.0.304441431091.issue20167@psf.upfronthosting.co.za>
2014-02-05 13:38:51terry.reedylinkissue20167 messages
2014-02-05 13:38:50terry.reedycreate