> And FWIW, I add my voice to those who prefer to read replies
>
> underneath the original text. Even if Mark were the only person vocal
>
> enough to complain, you can still rest assured that there are many
>
> more who agree. You've now heard from quite a few regular posters;
>
> there are p
oing on behind the scenes after your analysis.
>
> > Madison May wrote:
>
> > The list nlist inside of function xx is not the same as the variable
>
> > u outside of the function: nlist and u refer to two separate list
>
> > objects
On Monday, August 6, 2012 3:50:13 PM UTC-4, Mok-Kong Shen wrote:
> I ran the following code:
>
>
>
> def xx(nlist):
>
>print("begin: ",nlist)
>
>nlist+=[999]
>
>print("middle:",nlist)
>
>nlist=nlist[:-1]
>
>print("final: ",nlist)
>
>
>
> u=[1,2,3,4]
>
> print(u)
>
>
On Monday, August 6, 2012 3:50:13 PM UTC-4, Mok-Kong Shen wrote:
> I ran the following code:
>
>
>
> def xx(nlist):
>
>print("begin: ",nlist)
>
>nlist+=[999]
>
>print("middle:",nlist)
>
>nlist=nlist[:-1]
>
>print("final: ",nlist)
>
>
>
> u=[1,2,3,4]
>
> print(u)
>
>