Re: [Python-Dev] Revert #12085 fix for __del__ attribute error message

2013年9月26日 00:19:15 -0700

On 26 September 2013 16:53, Georg Brandl <[email protected]> wrote:
>> Sure, that's doable, but it dumps the full repr of "obj" in the middle
>> of the sentence. The thing that's not practical is the neat and tidy
>> wording Georg proposed, because the thing passed as "obj" is actually
>> an arbitrary Python object that may have a messy repr (like a bound
>> method, which is what gets passed in the __del__ case), so there's
>> definite merit in keeping that repr at the *end* of the header line.
>
> Then this should be fine, I guess?
>
> Exception caught and not propagated in: <....>
Sure. I still prefer something like "Could not propagate exception
from:" or "Caller could not propagate exception from <repr>" that
better indicates we're suppressing it because it's infeasible to raise
it rather than just because we feel like it, but any of them would
offer a decent improvement over the status quo.
Cheers,
Nick.
-- 
Nick Coghlan | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to