Re: [Tutor] how to *really* copy a list

2006-04-29 Thread kevin parks
Ed, I should have realized that the nesting would create the problem, but i didn't have that in mind... i always thought that the difference between extend and append was that extend did not yield a nested list. I really need to revisit this issue and get it right in my mind. It is a 'gotcha'

Re: [Tutor] how to *really* copy a list

2006-04-29 Thread kevin parks
John, Thanks. Your message was very helpful. I will tattoo it to my forehead. hehe... i notice that the "learning python" book also explains so of this and i shall study that as well cheers, kevin On Apr 27, 2006, at 10:14 PM, [EMAIL PROTECTED] wrote: > > On 28/04/06, kevin parks <[EMAIL P

Re: [Tutor] how to *really* copy a list

2006-04-28 Thread Ed Singleton
On 28/04/06, John Fouhy <[EMAIL PROTECTED]> wrote: > On 28/04/06, kevin parks <[EMAIL PROTECTED]> wrote: > > In most case you are fine operating on the list in place and altering the > > existing list. In some cases you want your code to stop molesting your poor > > mutables and really honestly sin

Re: [Tutor] how to *really* copy a list

2006-04-27 Thread John Fouhy
On 28/04/06, kevin parks <[EMAIL PROTECTED]> wrote: > In most case you are fine operating on the list in place and altering the > existing list. In some cases you want your code to stop molesting your poor > mutables and really honestly sincerly copy the dang thing. In this case i am > making a fun

Re: [Tutor] how to *really* copy a list

2006-04-27 Thread kevin parks
I know there is an answer to this somewhere. it is prolly the biggest stumbling block to all python n00bs, but it hasn't been an issue for me in a while. Suddenly i am getting bit by it and can't for the life of me keep straight the two way of opperating on lists. In most case you are fine