[Yum-devel] [PATCH][RFC] Make object show some info
Tim Lauridsen
tim.lauridsen at googlemail.com
Mon Feb 4 09:37:47 UTC 2008
Florian Festi wrote:
> I like it.
>
> Small remarks:
>
> If you use
>
> return "<%s : %s >" % (self.__class__.__name__, str(self))
>
> You don't have to overload the method for every sub class and you have
> the "right" class name - which may be better for debugging.
Make sense, i have moved __repr__ to PackageObject, so all child classes
has one and changed it so it uses the Class name. (And removed the
unwanted space too)
Tim
More information about the Yum-devel
mailing list