[Python-ideas] dir with a glob?
Masklinn
masklinn at masklinn.net
Thu Jun 30 14:38:09 CEST 2011
On 2011-06-30, at 14:29 , Ben Finney wrote:
> Sturla Molden <sturla at molden.no> writes:
>> I believe a new dir functions is needed, or a change in the behviour
>> of the current version.
>
> This is ‘python-ideas’. What is your idea for the desired behaviour?
>
> What about using a list comprehension or generator expression to get
> what you want?
Or a good ol' `filter`:
filter(methodcaller('startswith', 'i'), dir(sp.fft))
More information about the Python-ideas
mailing list