[Yum-devel] RPMDBPackageSack cleanup

Menno Smits menno-yum at freshfoo.com
Tue Sep 12 08:05:07 UTC 2006


seth vidal wrote:
> 
> so does writing it all in C and yet both of those things make it harder
> and harder to read.
> 
> I seriously cannot be the only person who thinks filters, lambdas and
> list comprehensions are harder to read, can I?

I agree that filters and lambdas are generally harder to read. List 
comprehensions can be a little trickier but I think they are generally 
quite clear. Like I said earlier, it's a matter of personal taste.

To clarify, I didn't use list comprehensions in rpmsack.py for speed 
reasons. I find them to be a concise, clear way of expressing simple 
list building operations.

Obviously not everyone agrees that list comprehensions are as clear as I 
do and easily-understood code is important in any open source project if 
you want people to contribute. I think I'll change the list comps and 
avoid using them in yum code in the future.

Menno



More information about the Yum-devel mailing list