[Yum-devel] [PATCH] clean up all the import yum.blah and from yum.blah import blah
Seth Vidal
skvidal at fedoraproject.org
Wed Sep 30 14:20:23 UTC 2009
On Wed, 30 Sep 2009, Tim Lauridsen wrote:
>> from constants import *
>> import metalink
>>
>
> Why ?
>
> from yum.i18n import ....
>
> is more readable than
>
> from i18n import .....
>
> and it is easier to see what is a yum submodule.
>
That's a fair point - major concern I've ever had is importing the wrong
module if you're working in a separate working path.
maybe that's not a real concern but it was at one point for me and I got
into that habit.
You do make a good point about figuring out what is from the yum module
and what is not, though..
I'll think about it.
-sv
More information about the Yum-devel
mailing list