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@redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel

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

Reply via email to