Hallöchen!

Martin v. Löwis writes:

>> How does my object get its own value?
>
>   def __unicode__(self):
>     return unicode(self)

I get an endless recursion with this.

I must admit, though, that I probably overestimate the costs
connected with unicode(my_excerpt) because Gabriel is probably right
that no real conversion takes place.  A mere attribute lookup may
still be cheaper, but only very slightly.

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                                      Jabber ID: [EMAIL PROTECTED]
               (See http://ime.webhop.org for further contact info.)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to