functions which take functions

Tim Chase python.list at tim.thechases.com
Wed Apr 11 14:45:50 EDT 2012


On 04/10/12 08:36, Kiuhnm wrote:
> On 4/10/2012 14:29, Ulrich Eckhardt wrote:
>> Am 09.04.2012 20:57, schrieb Kiuhnm:
> That won't do. A good example is when you pass a function to
> re.sub, for instance.

If that's a good example, then why not use it?  I've used it on 
multiple occasions to do lookups for replacements, math on the 
match bits, or other more complex calculations.

-tkc





More information about the Python-list mailing list