Re: Errors while using strip and remove on a variable.

2011-02-03 Thread Stephen Hansen
On 2/3/11 7:21 AM, anand jeyahar wrote: > Hi, > I am trying to strip a string and then remove on the resulting list > to remove a set of characters. It works fine with the python shell. > > But after remove the list becomes None, when i am running it from within > a script. > > I am guessing

Re: Errors while using strip and remove on a variable.

2011-02-03 Thread Gary Herron
On 02/03/2011 07:21 AM, anand jeyahar wrote: Hi, I am trying to strip a string and then remove on the resulting list to remove a set of characters. It works fine with the python shell. But after remove the list becomes None, when i am running it from within a script. I am guessing it ha

Re: Errors while using strip and remove on a variable.

2011-02-03 Thread Benjamin Kaplan
On Thu, Feb 3, 2011 at 10:21 AM, anand jeyahar wrote: > Hi, >     I am trying to strip a string and then remove on the resulting list to > remove a set of characters. It works fine with the python shell. > > But after remove the list becomes None, when i am running it from within a > script. > > I

Errors while using strip and remove on a variable.

2011-02-03 Thread anand jeyahar
Hi, I am trying to strip a string and then remove on the resulting list to remove a set of characters. It works fine with the python shell. But after remove the list becomes None, when i am running it from within a script. I am guessing it has something to do with the way python handles assig