How can I format unicode strings?

Patrick Sabin patrick.just4fun at gmail.com
Wed Sep 9 06:27:32 EDT 2009


gentlestone schrieb:
>  return u"{}".format(self.name)

u"{0}".format(u"blah")

works for me with python-2.6.2
Maybe your format string is wrong.

- Patrick




More information about the Python-list mailing list