[Yum-devel] returnNewestByName & PackageSackError's ...

seth vidal skvidal at linux.duke.edu
Thu Jun 1 15:26:11 UTC 2006


On Thu, 2006-06-01 at 09:02 -0400, Bret McMillan wrote:
> > 
> > d) What I'd prefer is instead of None, return [] so you don't need 
> > check if it was None or a list and handle specially. IIRC a a couple of 
> > years ago in rpm python bindings an interface was changed from return 
> > empty list instead of None because everybody hated the special casing None 
> > caused :)
> 
> Yeah, I could definitely see that instead.
> 

I agree - I'm much more amenable to an empty list.

-sv





More information about the Yum-devel mailing list