file bug???

Anand Pillai pythonguy at Hotpop.com
Fri Nov 21 05:39:26 EST 2003


It does not exist in Python 2.2, AFAIK.
It is a good idea to write code that at least works for
one previous Python version, hence the comment.

-Anand


On Fri, Nov 21, 2003 at 12:00:21AM -0800, Anand Pillai wrote:
>
> Some other things.
>
> o 'os' module does not have a function 'walk'. Change it to os.path.walk .
> o  os.path.walk takes 3 arguments, not one. You need to correct this.

It does exist in Python 2.3, and it does take one argument (and optionally
others):

    http://python.org/doc/lib/os-file-dir.html#l2h-1473

-Andrew.




More information about the Python-list mailing list