[Yum-devel] yumBase using properties
seth vidal
skvidal at linux.duke.edu
Thu Feb 22 02:34:41 UTC 2007
On Wed, 2007-02-21 at 12:44 -0500, Jeremy Katz wrote:
>
> > It might be best to have the logic to see if the field is already
> > populated live outside of the do* methods, so that their behaviour is
> > not changed.
>
> We almost certainly want to do this.
>
> > Can the new do* methods all be _do*?
>
> Or maybe _get? :)
or maybe we can change their name every few hours b/c it won't matter
much! :)
>
> > Lastly, how about marking the existing do* methods as deprecated? :)
>
> Well, they have to exist in some form or another -- direct calls of them
> probably won't be needed in The Future (tm), but the _getter will still
> need to call them.
that's the fget'er, duh. :)
>
> > I love this though. It will make a lot of the code look so much nicer.
>
> Agreed
You should agree. You were the one who said yesterday "maybe we should
make these properties so we don't have to call self.doSackSetup() before
using it"
:)
-sv
More information about the Yum-devel
mailing list