Terry J. Reedy <tjre...@udel.edu> added the comment:
While I have no specific opinion on tarfile, I strongly disagree with a blanket prohibition on 'from None'. Its proper use is to maintain a defined API and hide irrelevant implementation details. Realistic toy example: def f(x, y): "Return (x+y)/y for non-zery y." if y == 0: # Body 1: look ahead. raise ValueError('y cannot be 0') else: return (x+y)/y # or try: # Body 2: leap first. return (x+y)/y except ZeroDivisionError: raise ValueError('y cannot be 0') from None 'from e' instead of 'from None' would just add distracting noise. ---------- nosy: +terry.reedy _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39717> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com