Re: [web2py] python * function in Html Helpers

2011-09-13 Thread Jonathan Lundell
On Sep 13, 2011, at 10:10 AM, António Ramos wrote: > Hello, i dont understant quite well how to interpret the * in this code: It's just Python syntax: http://docs.python.org/tutorial/controlflow.html#unpacking-argument-lists > > > table = [['a', 'b'], ['c', 'd']] > 2 >>> print TABLE(*[TR(*r

[web2py] python * function in Html Helpers

2011-09-13 Thread António Ramos
Hello, i dont understant quite well how to interpret the *** in this code: table = [['a', 'b'], ['c', 'd']] 2 >>> print TABLE(***[TR(***rows) for rows in table]) 3 abcd Can someone please have the kindness to better understand it I read the book but still not get it thank you