[Chicago] Reading From a Directory
Clyde Forrester
clydeforrester at gmail.com
Tue May 10 05:08:11 CEST 2011
Carl Karsten wrote:
> On Mon, May 9, 2011 at 7:01 PM, Clyde Forrester
> <clydeforrester at gmail.com> wrote:
>> Outsourcing something that fundamental to a shell or module still bugs me,
>
> that statement bugs me :)
>
> os.listdir() is an interface between the python vm and the OS's api to
> do what you want. It is about as elegant as you can get. Curious:
> what bugs you about it?
>
>
I'm making the tough mental shift from
It's so trivially easy that everyone EXCEPT Python has the ability to
open, read, and close a directory. What could be easier?
to
Just because you CAN do it that way, doesn't mean you SHOULD. Or, for
that matter, that it's the most direct or simplest way.
Yeah, yeah. I'll get over it.
c4
More information about the Chicago
mailing list