News for hackers. Stuff that matters.
Re:PEP 760: No more bare excepts by smbullet on Wednesday October 09, 2024 @01:26PM (#41790402)
This seems silly. I hate backwards compatibility but this change will just cause people to use `except BaseException` everywhere which seems even less idiomatic than bare excepts.

ETA: Nobody is going to dig through a large codebase to find exactly what exceptions can be bubbled up if they didn't design it with explicit exception handling in mind from the beginning. It will also potentially become a pattern people will copy in new code.

There are no comments on this comment yet.