[Tutor] Some Strange Behavior

Rikard Bosnjakovic rikard.bosnjakovic at gmail.com
Sun Mar 25 16:39:12 CEST 2007


On 3/25/07, Utkarsh Tandon <utkarsh.tandon at gmail.com> wrote:

>     realtext = str(realtext)

Here's the problem. Use this instead:

   realtext = "".join(realtext)

>     realtext = realtext.replace('[', "").replace(']', "").replace(',',
> "").replace("'", "").replace('\\n', "").replace('\\t', "")

And delete this one.


-- 
- Rikard - http://bos.hack.org/cv/


More information about the Tutor mailing list