On Thu, 31 May 2007 08:57:56, Douglas Woodrow 
<[EMAIL PROTECTED]> wrote
>On Wed, 30 May 2007 23:23:22, Warren Stringer <[EMAIL PROTECTED]> wrote
>>
>>def a(): return 'b'
>>def b(): print 'polly! wakey wakey'
>>c = {}
>>c['a'] = b
>>c[a()]()  #works!
>
>
>(typo correction for other easily-confused newbies like myself)
>
>I think you mean
>,----
>| c['a']()  #works!
>`----
>

Oh no, I get it, you meant...
,----
| c['b'] = b
| c[a()]()  #works!
`----

...or was it?:-
,----
| def a(): return 'a'
`----

-- 
Doug Woodrow

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to