Shouldn't this give me a list of squares?
[lambda x: x**2 for x in range(10)]

Instead I'm getting ten of these (with different addresses)
<function <listcomp>.<lambda> at 0x01262A50>]

-- 
Jim

I can't think of a clever tagline today, so just imagine I said something
clever.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to