explain this function to me, lambda confusion

globalrev skanemupp at yahoo.se
Wed May 7 17:47:36 EDT 2008


and what si the diffrence here:

g = lambda x=5:x*x
g = lambda x:x*x

the first was a mistake to write but it worked
and the x=5 seems to be completely ignored. why? it has no effect at
all?



More information about the Python-list mailing list