how to pass a custom object to

brunovianarezende at brunovianarezende at
Fri Aug 17 16:21:52 CEST 2007

> Try to implement __str__() for your object and provide a string
> representation for it.

I've done that (and added __unicode__ too). I only didn't want to, I
want to do:

so, code that worked before as:

don't have to be changed for:

and I'm also curious to know if it is possible to do that... :-)

More information about the Python-list mailing list