Re: [newbie] copying identical list for a function argument

2014-02-04 Thread Jean Dupont
Op maandag 3 februari 2014 23:19:39 UTC+1 schreef Steven D'Aprano: > On Mon, 03 Feb 2014 13:36:24 -0800, Jean Dupont wrote: > > I have a list like this: > > [1,2,3] > > > > The argument of my function should be a repeated version e.g. > > [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different numbe

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Rustom Mody
On Tuesday, February 4, 2014 3:06:24 AM UTC+5:30, Jean Dupont wrote: > I have a list like this: > [1,2,3] > The argument of my function should be a repeated version e.g. > [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times > repeated also) > what is the prefered method to real

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Tim Chase
On 2014-02-03 13:36, Jean Dupont wrote: > I have a list like this: > [1,2,3] > > The argument of my function should be a repeated version e.g. > [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of > times repeated also) > > what is the prefered method to realize this in Python? > > a

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Steven D'Aprano
On Mon, 03 Feb 2014 13:36:24 -0800, Jean Dupont wrote: > I have a list like this: > [1,2,3] > > The argument of my function should be a repeated version e.g. > [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times > repeated also) > > what is the prefered method to realize this i

Re: [newbie] copying identical list for a function argument

2014-02-03 Thread Gary Herron
On 02/03/2014 01:36 PM, Jean Dupont wrote: I have a list like this: [1,2,3] The argument of my function should be a repeated version e.g. [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times repeated also) That's not very clear. You say "The" argument (singular; meaning 1) b

[newbie] copying identical list for a function argument

2014-02-03 Thread Jean Dupont
I have a list like this: [1,2,3] The argument of my function should be a repeated version e.g. [1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times repeated also) what is the prefered method to realize this in Python? any help would be really appreciated kind regards, jean --