News for hackers. Stuff that matters.
Re:Improving your (Python) code with modern idioms by dalke on Tuesday May 08, 2012 @06:11AM (#3942969)
I found that I often (~1 time in 10) make a mistake with that syntax, and omit the trailing 's'. I think it's because I'm not used to having anything after a closing ')'.
Re:Improving your (Python) code with modern idioms by mturmon on Tuesday May 08, 2012 @03:09PM (#3945335)
Same problem here. Maybe the braces approach using {name} is an improvement upon %(name)s in that respect.