Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eesmith
on Oct 9, 2024
|
parent
|
context
|
favorite
| on:
PEP 760: No more bare excepts
Yeah, no. I know I'll mistakenly do
except Exception: resource.rollback() raise
instead of
except BaseException: resource.rollback() raise
and it's going to be really hard to insert a test case which ensures I really handled KeyboardInterrupt and the like.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: