lambda & scope

Johannes Zellner johannes at zellner.org
Sun Nov 5 21:03:44 EST 2000


Hi,

this fails:

    def fred(scale):
        v = [1, 2, 3]
        v = map(lambda x: x * scale, v)

NameError: There is no variable named 'scale'

how can I make it working ?

-- 
   Johannes



More information about the Python-list mailing list