TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python Lambdas Explained [video]

17 pointsby omarshammasalmost 12 years ago

1 comment

themckmanalmost 12 years ago
May or may not be interesting, but:<p><pre><code> lambda x, y: pass </code></pre> will throw a syntax error because pass[0] is a statement and the lambda form[1] expects an expression:<p>[0]: <a href="http://www.youtube.com/watch?v=Ov_y5kYJQSY" rel="nofollow">http:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Ov_y5kYJQSY</a> [1]: <a href="http://www.youtube.com/watch?v=Ov_y5kYJQSY" rel="nofollow">http:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Ov_y5kYJQSY</a>