[Yum] some refactoring...
bor at vb.dn.ua
Wed Oct 30 13:00:06 UTC 2002
>>>>> "sv" == seth vidal <skvidal at phy.duke.edu> writes:
>> each case modified like this:
>> - elif cmds == 'info':
>> - cmds.remove(cmds)
>> + elif _command == 'info':
>> I think, result very pretty ;)
sv> I like the single pop instead of multiple cmds.remove
sv> but I don't understand - is there a benefit from naming the variable
sv> _command? Is it just to imply that it should be a private variable?
sv> I thought _ didn't do anything but __ really made it private. Is that
Names started with _ must be undestanded as 'local varable' - it's a usual
More information about the Yum