[issue6095] os.curdir as the default argument for os.listdir

Virgil Dupras report at bugs.python.org
Mon Jun 15 01:22:38 CEST 2009


Virgil Dupras <hsoft at hardcoded.net> added the comment:

1. Yeah, I know. At first, that's what I wanted to do, but it resulted 
in a lot of code duplication (alloc, memerror, copy), which I didn't 
much like. But then again, what I ended up writing (because I realized I 
had to decref the  new "po") uses up more lines anyway...

2. oops

3. I did it because all other tests do it. I thought there had to be a 
reason (but then again, that old broken "lsdir" test had been there for 
a while...). Even if there's no reason. the new test would really stand 
out compared to the rest...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6095>
_______________________________________


More information about the Python-bugs-list mailing list