[Freeipa-devel] [PATCH] 0009 Detect and configure all usable IP addresses.

Fraser Tweedale ftweedal at redhat.com
Thu Aug 28 00:36:41 UTC 2014


On Wed, Aug 27, 2014 at 03:17:37PM +0200, Martin Kosek wrote:
> On 08/27/2014 02:24 PM, David Kupka wrote:
> ...
> > > 2) do not use map(), FreeIPA doesn't like it
> 
> Well, it is not that FreeIPA does not like it, it is just more Pythonic to
> use list comprehension and not functional languages remnants in Python :-)
> 
Furthermore, if you go the comprehension route, a generator
comprehension would be cheaper than a list comprehension.

IMBO, this is the main reason to use a [generator] comprehension
over ``map`` - in Python 2 at least.

> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel




More information about the Freeipa-devel mailing list