[oe] [PATCH 12/12] task-base.bb: use uniform test for set

Phil Blundell philb at gnu.org
Thu Feb 11 13:04:13 UTC 2010


On Mon, 2010-02-08 at 22:14 +0100, Bernhard Reutner-Fischer wrote: 
> -    if not hasattr(__builtins__, 'set'):
> +    try:
> +	set
> +    except NameError:
>  	from sets import Set as set

It's not completely obvious to me that this patch is an improvement: it
replaces a single line of code with three new ones and doesn't seem to
change the outcome.  Maybe one of our Python überhackers can comment on
whether or not this is really better.

p.






More information about the Openembedded-devel mailing list