Re: more newbie list questions
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: more newbie list questions

From: Ali <ali.jan@gmail.com>
Date: Fri Jul 15 2005 - 06:29:13 CEST

sTemplate.replace() returns a string with that substitution.

so you need to reassign it such as:
sTemplate = sTemplate.replace('author1', author1)

Anyway, Sion Arrowsmith above showed you a much better technique of
filling all those values at once.

Hope this helps,

Ali
Received on Thu Sep 29 16:57:47 2005