On 19.05.2017 20:01,
[email protected] wrote:
-Original Message-
From: Python-ideas [mailto:python-ideas-bounces+tritium-
[email protected]] On Behalf Of Wolfgang Maier
Sent: Friday, May 19, 2017 10:03 AM
To: [email protected]
Subject: Re: [Python-ideas] fnmatch.fi
On Wed, May 17, 2017 at 12:14:05PM -0400, Alex Walters wrote:
> Fnmath.filter works great. To remind people what it does, it takes an
> iterable of strings and a pattern and returns a list of the strings that
> match the pattern. And that is wonderful
>
> However, I often need to filter *out* th
On 20 May 2017 at 10:19, Steven D'Aprano wrote:
> On Fri, May 19, 2017 at 11:24:53AM -0700, Guido van Rossum wrote:
>
>> 4. Easily allow to specify a conversion function. For example I have
>> some code like below:
>> note that I can store a numpy array while keeping hashability and
>> I can m
On 5/20/17, Steven D'Aprano wrote:
> On Wed, May 17, 2017 at 12:14:05PM -0400, Alex Walters wrote:
>> Fnmath.filter works great. To remind people what it does, it takes an
>> iterable of strings and a pattern and returns a list of the strings that
>> match the pattern. And that is wonderful
>>
>
On Sun, May 21, 2017 at 08:04:04AM +0200, Pavol Lisy wrote:
> If fnmatch.filter was written to solve performance, isn't calling
> _filtered step back?
It adds overhead of *one* function call regardless of how many
thousands or millions of names you are filtering. And the benefit is
that filter(