Re: How to best explain a "subtle" difference between Python and Perl ?

2008-08-12 Thread Demarche Bruno
Thank you both for your reply ! On Tue, Aug 12, 2008 at 8:52 PM, Demarche Bruno <[EMAIL PROTECTED]> wrote: > Thank you Nigel, it's clearer for both of us now. > I think wat confused her is the fact that : > > L = [1,2,3] > def foo(my_list): >my_list.append(4)

Re: How to best explain a "subtle" difference between Python and Perl ?

2008-08-12 Thread Demarche Bruno
Thank you Nigel, it's clearer for both of us now. I think wat confused her is the fact that : L = [1,2,3] def foo(my_list): my_list.append(4) will modify L, while the following: L = [1,2,3] def foo(my_list): my_list = [1,2,3,4] will not. On Tue, Aug 12, 2008 at 6:46 PM, Nigel Rantor <[