RE: Problem with list.remove() method

2012-11-20 Thread Prasad, Ramit
Alvaro Combo wrote: > > Hi All, > > I'm relatively new to Python... but I have found something I cannot > explain... and I'm sure you can help me. > > I have the following function that serves for removing the duplicates from a > list... It's a simple and (almost) > trivial task. > > I'm usi

Re: Problem with list.remove() method

2012-11-20 Thread Chris Angelico
On Wed, Nov 21, 2012 at 1:37 AM, Alvaro Combo wrote: > Dear Chris, > > Thank you very much for you reply... > For a newcomer to Python the Hell is in the details... :-). You're most welcome! As Adam Savage of Mythbusters is fond of saying (with an exaggerated accent), "It's all a learning experie

Re: Problem with list.remove() method

2012-11-20 Thread Terry Reedy
On 11/20/2012 9:14 AM, Chris Angelico wrote: On Wed, Nov 21, 2012 at 12:56 AM, Alvaro Combo wrote: Hi All, I'm relatively new to Python... but I have found something I cannot explain... and I'm sure you can help me. I have the following function that serves for removing the duplicates from

Re: Problem with list.remove() method

2012-11-20 Thread Alvaro Combo
Dear Chris, Thank you very much for you reply... For a newcomer to Python the Hell is in the details... :-). You are absolutely right... and I just used the index instead of the value. Regarding you other (most relevant) comments, I absolutely agree... BUT in those cases... I was aware :-). Bu

Re: Problem with list.remove() method

2012-11-20 Thread Chris Angelico
On Wed, Nov 21, 2012 at 12:56 AM, Alvaro Combo wrote: > Hi All, > > I'm relatively new to Python... but I have found something I cannot > explain... and I'm sure you can help me. > > I have the following function that serves for removing the duplicates from a > list... It's a simple and (almost