[Tutor] Conflicted

alan.gauld@bt.com alan.gauld@bt.com
Sun, 7 Apr 2002 23:15:46 +0100


> for line in inp.readlines():    #loop
>     if line.find(x): 
>          line.replace(x, '')     #using built-in method to

I think that should be

           line = line.replace(x,'')

replace creates a new string it doesn't alter the original.

> I may know why.  A short while ago I upgraded to python v2.2 but the
> original 1.5 version is still resident on my system.  

Sounds like the roblem.
What happens when you just type python in a DOS box? 
Is is 2 or 1.35 that comes up?

In either case remove Python 1.5 from the system, if 
possible using the Control Panel remove programs applet
since it will cleanse the registry too...

If necessary reinstall v2 after.


Alan G.