Sub-classing unicode: getting the unicode value

"Martin v. Löwis" martin at v.loewis.de
Sun Dec 30 17:22:11 EST 2007


> How does my object get its own value?

  def __unicode__(self):
    return unicode(self)

Regards,
Martin



More information about the Python-list mailing list