This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients belopolsky, benjamin.peterson, gvanrossum, rhettinger
Date 2008-03-12.20:13:42
SpamBayes Score 0.02303632
Marked as misclassified No
Message-id <1205352826.24.0.611278359106.issue2186@psf.upfronthosting.co.za>
In-reply-to
Content
Do you guys see any merit in changing the argument order for ifilter so
that the predicate function can just be an optional argument:

  ifilter(data[, pred])

Alex Martelli successfully lobbied for groupby() to have that same
argument order.  Originally, the signature was groupby(key, iterable)
but it worked-out much better to have groupby(iterable[, key]).

Also, I like swapped arguments because it more closely parallels the
order used in an equivalent list comprehension:

   [e for e in iterable if pred(e)]
History
Date User Action Args
2008-03-12 20:13:46rhettingersetspambayes_score: 0.0230363 -> 0.02303632
recipients: + rhettinger, gvanrossum, belopolsky, benjamin.peterson
2008-03-12 20:13:46rhettingersetspambayes_score: 0.0230363 -> 0.0230363
messageid: <1205352826.24.0.611278359106.issue2186@psf.upfronthosting.co.za>
2008-03-12 20:13:45rhettingerlinkissue2186 messages
2008-03-12 20:13:44rhettingercreate