[issue39053] Hide manually raised exception formatting

2019-12-15 Thread SilentGhost
SilentGhost added the comment: This sounds like it needs at least some discussion on python-ideas. For example, just reading your description I can't imagine what is supposed to happen when an error occurs when producing argument to the exception. -- nosy: +SilentGhost resolution:

[issue39053] Hide manually raised exception formatting

2019-12-15 Thread YoSTEALTH
New submission from YoSTEALTH : class Some_Class: def error(self): if not getattr(self, 'boo', None): raise Exception(f'`class {self.__class__.__name__}:` raised some error!') something = Some_Class() something.error() # This is how Error looks #