On 11/07/2017 03:12 PM, Soni L. wrote:
exec("def one(x):\n [r] = x\n return r") # who says python doesn't have one-liners?(ofc, some would argue you should use: one = (lambda x: (lambda y: y)(*x))
Most would argue that def one(x): [r] = x return r is the appropriate code. -- ~Ethan~ _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/