lambda & scope

Johannes Zellner johannes at zellner.org
Mon Nov 6 03:03:44 CET 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