Re: [code] [textadept] Proposed API Changes

From: Robert <>
Date: Wed, 20 Mar 2013 11:52:19 +0100


On Wed, Mar 20, 2013 at 2:32 AM, Mitchell <> wrote:
>>> A very useful function. How about not attaching this to the `lfs`
>>> module but the `io` module? The `lfs` module feels more "third-party"
>>> to me and it could be confusing.
> I had given a lot of thought to `io`, but iterating over directories without
> reading or writing to files doesn't feel like `io`. I also don't feel like
> it fits when looking at the current `io` API.

I was reluctant to suggest `io` for the same reason.

> What about `os.dir_foreach()`? But that doesn't exactly feel right either...

If none of the options (`lfs`, `os`, `io`) feel quite right, how about
something else? Could `dir_foreach` be put somewhere else? Could there
be a general `foreach` or `each` filtering function that could be used
elsewhere as well?


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 20 Mar 2013 - 06:52:19 EDT

This archive was generated by hypermail 2.2.0 : Thu 21 Mar 2013 - 06:52:16 EDT