From: gabriele renzi Date: 2003-11-17T11:12:12+09:00 Subject: Re: array -> list il Sat, 15 Nov 2003 21:23:09 +0900, Wybo Dekker ha scritto:: >Is there a way to convert an array to a (parameter-)list? > >I often find myself doing things like: > > year,mon,day,hour,minute = ParseDate.parse(datestring) > printf("%04d-%02d-%02d %02d:%02d\n",year,mon,day,hour,minute) > >while it would be a lot nicer to do: > > printf("%04d-%02d-%02d %02d:%02d\n", ParseDate.parse(datestring) just use a * just before an array to make it a list of parameters. Btw, maybe you could just use print Date.strftime(yourformat)