[issue33576] Make exception wrapping less intrusive for __set_name__ calls

Nick Coghlan report at bugs.python.org
Sat May 19 19:40:57 EDT 2018


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Yeah, the "transparent exception chaining" code falls into the category of code that I'm both proud of (since it works really well in typical cases [1]) and somewhat horrified by (since the *way* it works tramples over several principles of good object oriented design and is completely non-portable to other Python implementations).

Anyway, I've adjusted the issue title here to indicate that we don't want to remove the exception wrapping entirely, just make it less intrusive.

[1] See the hex encoding and bz2 decoding failure examples in https://docs.python.org/3/whatsnew/3.4.html#codec-handling-improvements

----------
title: Remove exception wrapping from __set_name__ calls -> Make exception wrapping less intrusive for __set_name__ calls

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33576>
_______________________________________


More information about the Python-bugs-list mailing list