to use unicode strings only

Gaudha sanal.vikram at gmail.com
Sat Jun 27 11:57:24 EDT 2009


On Jun 27, 4:54 pm, Peter Otten <__pete... at web.de> wrote:
> MRAB wrote:
> > Gaudha wrote:
> >> I wanna make all the strings in my code unicode strings. How to do it
> >> without giving unicode switch 'u' before every string?
>
> > Use Python 3.1 instead.
>
> or use
>
> from __future__ import unicode_literals
>
> in Python 2.6.

I know about Python 3.1 have the capability. But, unfortunately the
community for which I'm working do not prefer Python 3.*...

And Peter, I tried importing the __future__ module. It's also not
working...



More information about the Python-list mailing list