Re: deleteing item from a copy of a list

2006-11-14 Thread Mikael Olofsson
timmy wrote: > i make a copy of a list, and delete an item from it and it deletes it > from the orginal as well, what the hell is going on?!?!?! > > #create the staff copy of the roster > Roster2 = [] > for ShiftLine in Roster: > #delete phone number from staff copy >

Re: deleteing item from a copy of a list

2006-11-14 Thread Peter Otten
timmy <"timothy at open-networks.net"> wrote: > i make a copy of a list, and delete an item from it and it deletes it > from the orginal as well, what the hell is going on?!?!?! > > #create the staff copy of the roster > Roster2 = [] > for ShiftLine in Roster: > #

Re: deleteing item from a copy of a list

2006-11-14 Thread Fredrik Lundh
timmy wrote: > i make a copy of a list, and delete an item from it and it deletes it > from the orginal as well, what the hell is going on?!?!?! > > #create the staff copy of the roster > Roster2 = [] > for ShiftLine in Roster: > #delete phone number from staff copy >

deleteing item from a copy of a list

2006-11-14 Thread timmy
i make a copy of a list, and delete an item from it and it deletes it from the orginal as well, what the hell is going on?!?!?! #create the staff copy of the roster Roster2 = [] for ShiftLine in Roster: #delete phone number from staff copy Roster2.a