A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-April/035139.html below:

os.path.walk() lacks 'depth first' option

[Python-Dev] Re: os.path.walk() lacks 'depth first' optionTim Peters tim.one@comcast.net
Sun, 27 Apr 2003 17:22:00 -0400
[Jeremy Fincher]
> It's a minor quibble to be sure, but os.walk doesn't really
> describe what exactly it's doing.  I'd suggest os.pathwalk, but
> that'd be too error-prone, being os.path.walk without a dot.  Perhaps
> os.pathwalker?

[Greg Ward]
> os.walktree?  os.walkdirs?  os.walkpath?
>
> (On reflection, the latter two are pretty dumb.  walktree is the right
> name, undoubtedly.  ;-)

I don't expect any short name to describe exactly what a thing does, and
don't worry about it.  math.sin() isn't about lust in your heart, or
math.tan() about practicing safe sunning either.

Guido has his own inscrutable criteria for picking names.  Mine is whether,
*after* I know what a thing does, it's hard to forget what the name means.
"walk" passed that test for me, and better than Python or Java did <wink>.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4