Python Closures
June 12, 2010
I wanted to do a regex based search and replace in python, but I wanted something else to be passed into the match function (the current project name), so that I could include it in the replacement text. A quick post on stackoverflow gave me the answer - create a …