force unicode strings

Thomas Guettler guettli.usenet at thomas-guettler.de
Wed Aug 1 17:19:08 CEST 2007


Hi,

is it possible to force all non ascii strings to be unicode strings
somehow?

Sometimes I forget that I need to write u'...' if the string contains
an umlaut. I get an exception in django later. But since the
exception does not show the string it is hard to find it.

Is it possible to loop over all strings the interpreter has parsed?

Pure ascii strings are OK.

 Thomas

-- 
Thomas Güttler, http://www.thomas-guettler.de/ http://www.tbz-pariv.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: niemand.leermann at thomas-guettler.de




More information about the Python-list mailing list