<div dir="ltr">it copies the list<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 22, 2014 at 6:17 PM, fl <span dir="ltr"><<a href="mailto:rxjwg98@gmail.com" target="_blank">rxjwg98@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Tuesday, July 22, 2014 4:46:25 PM UTC-4, emile wrote:<br>
> On 07/22/2014 01:35 PM, Peter Pearson wrote:<br>
</div><div class="">> def reassign(mylist):  # no reason to shadow the list builtin<br>
>      mylist[:] = [0,1]<br>
> mylist = [1]<br>
> reassign(mylist)<br>
> mylist<br>
> Emile<br>
<br>
</div>Thanks for your example. I do not find the explanation of [:] on line. Could you<br>
explain it to me, or where can I find it on line?<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="https://mail.python.org/mailman/listinfo/python-list" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br></div>
</div>