Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not disagreeing with you. In fact, the first example is one reason why "print" was changed from a keyword to a function in Python 3:

  myfunc <- lambda x: (print x) or x*x  # SyntaxError

  myfunc <- lambda x: print(x) or x*x  # OK in Py3


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: