[Python-ideas] os.listdir default to '.'

Cameron Simpson cs at zip.com.au
Fri Jan 13 00:26:04 CET 2012


On 12Jan2012 22:11, Sven Marnach <sven at marnach.net> wrote:
| Cameron Simpson schrieb am Fr, 13. Jan 2012, um 08:32:23 +1100:
| > On 12Jan2012 15:14, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
| > | Strictly speaking I think the default value should be
| > | os.path.curdir, not specifically '.'
| [...]
| >   -1 for os.curdir() being opendir's default.
| 
| There's a misunderstanding here.  You are confusing 'os.getcwd()' and
| 'os.curdir'.

Yes.

Please ignore the rest of that post, based as it is on a brain fart on
my part.

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

It must be public fact, because I'm not the only one who knows about it.
        - Stefan A. Werner <iczer-1!saw at uunet.uu.net>



More information about the Python-ideas mailing list