News for hackers. Stuff that matters.
Re:Python Tips and Traps by task_queue on Monday January 19, 2015 @04:24PM (#8914179)
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.
Re:Python Tips and Traps by ryan_sb on Tuesday January 20, 2015 @07:13AM (#8916547)
I don't know how I've missed out on contextlib all this time. I'll update that section.