> Try to implement __str__() for your object and provide a string > representation for it. > > re.search(str(custom_object)) >
I've done that (and added __unicode__ too). I only didn't want to, I want to do: re.search(custom_object) so, code that worked before as: re.search(parentobj.custom_object) don't have to be changed for: re.search(str(parentobj.custom_object)) and I'm also curious to know if it is possible to do that... :-) -- http://mail.python.org/mailman/listinfo/python-list