[Yum] what do You think about this?
seth vidal
skvidal at phy.duke.edu
Tue Nov 5 22:12:14 UTC 2002
On Tue, 2002-11-05 at 17:08, Vladimir Bormotov wrote:
> Hi!
>
> ===================================
> diff -u -r1.51 clientStuff.py
> --- clientStuff.py 5 Nov 2002 01:33:45 -0000 1.51
> +++ clientStuff.py 5 Nov 2002 22:02:42 -0000
> @@ -212,6 +212,11 @@
>
> return h
>
> +MAP_OBSOLETES = [('>', 1),
> + ('>=', 1), ('>=', 0),
> + ('=', 0),
> + ('<=', 0), ('<=', -1),
> + ('<', -1)]
>
Honestly I think mine is easier to follow.
and that portion of code made my mind twist a little bit trying to make
sure I had the ordering and cases right.
so making it easy to read/follow was a perk.
also - that portion of code takes about 0s to run so I'm sorta more in
favor of clarity over smallness of code.
-sv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum/attachments/20021105/d4fdf3ac/attachment-0001.pgp
More information about the Yum
mailing list