[portland] Using log() programmatically

Rich Shepard rshepard at appl-ecosys.com
Fri Sep 28 21:46:43 CEST 2007


On Fri, 28 Sep 2007, Robin Dunn wrote:

> Instead of making the dictionary keys a value, you can make it be a
> function, something like this:
>
> def do_times1(val):
> 	return val
> def do_times10(val):
> 	return val * 10
> ...

   Thanks, Robin. I've seen this approach, but it didn't occur to me to use
it.

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |         Accelerators(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863


More information about the Portland mailing list