Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
task_queue
· 11y ago · 0 comments
Use contextlib to write your context managers. Thought the exception handling code was going to catch the all-encompassing use of 'except:' but nope. Don't do that.
Comments
[–]
ryan_sb
11y ago
I don't know how I've missed out on contextlib all this time. I'll update that section.