On 9 Sep, 12:49, gentlestone <tibor.b...@hotmail.com> wrote: > > I have python 2.5 > > return u'{0}'.format(self.name) > > doesn't work eigther > > the error message i've got is: > > 'unicode' object has no attribute 'format' > > is the new formatting style newer then python 2.5?
Yes. The new string formatting appeared in python 2.6. Perhaps there is some __future__ stuff you can import to get it to work, don't know. If not you are stuck with the old string formatting until you upgrade to 2.6 or newer: >>> print u'Hello %s!' % u'world' Hello world! /Niklas Norrthon -- http://mail.python.org/mailman/listinfo/python-list