This post originated from an RSS feed registered with Python Buzz
by Guyon Morée.
Original Post: Python nested scopes
Feed Title: gumuz' devlog
Feed URL: http://gumuz.looze.net/wordpress/wp-rss2.php
Feed Description: 'till dev do us part
I was using the sub-function from the re (regexp) python module. The sub function replaces parts of a string according a given regular expression.
The replacement can be either a string or a callable. When using the callable, a match object will be passed on to the callable. The problem I had with this is that [...]