[portland] Dictionary To Switch Contexts

Rich Shepard rshepard at appl-ecosys.com
Tue Mar 18 01:50:08 CET 2008


On Mon, 17 Mar 2008, Michael Richardson wrote:

> Python returns the actual function when you get it via the dict - so you
> can just call it directly.  For example:

Michael,

> >>> func_dict['byone'](4)

   It was how I called it that was incorrect. Using brackets made all the
difference! And, now that the syntax is correct it accepts the call to the
functions module within the dictionary.

   On to the next bug, ...

Many thanks,

Rich

-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863


More information about the Portland mailing list