View Single Post
Old 07-04-2016, 03:20 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
A lambda creates an anonymous function, and needs to know how many arguments to consume in case the installation script fails to download.

It is the difference between printing:
Code:
2016-07-04 15:11:16 ERROR 404: Not Found.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: <lambda>() takes 0 positional arguments but 1 was given
and:
Code:
2016-07-04 15:10:39 ERROR 404: Not Found.
Download failed

tl;dr How many arguments did you pass into:
main()
main('/opt')
main('/opt', True)
eschwartz is offline   Reply With Quote