Am 25. Aug, 2000 schwäzte Lucas Vogel so: > Could someone take a look at this and tell me what's wrong at > string.replace()? Lucas, you should drop these questions on the devel list :). Can't help you with python, though :(. Maybe we should see if Jiva is Kiboizing as well as JLF :). I'll leave the junk at the bottom for once, just in case he is... ciao, der.hans > #Begin code--------------------- > > import string, os, sys, re > > fName = sys.argv[1] > s1 = sys.argv[2] > s2 = sys.argv[3] > > f=open(fName,'rw') > > s=f.read() > > print "string.replace(" + `s` + ", " + `s1` + ", " + `s2` + ")" > string.replace(s,s1,s2) > > > print "s is now: " + `s` + "\n" > > > #end code----------------------- > > Thanks > > > ------------------------------------------- > Lucas Vogel, Software Developer > LandWarrior Project > Exponent Inc. > lvogel@exponent.com > phone: (623)587-6739 > fax: (623)587-4187 > ------------www.exponent.com--------------- > > ________________________________________________ > See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail. > > Plug-discuss mailing list - Plug-discuss@lists.PLUG.phoenix.az.us > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > -- # der.hans@LuftHans.com home.pages.de/~lufthans/ www.Opnix.com # Knowledge is useless unless it's shared. - der.hans