Newbie Question
Bob W.
removethis_kranki2 at earthlink.net
Fri Dec 22 11:33:34 EST 2000
Being really new, I am not certain about the next statement. However,
it seemed to me that the difference might be that you are executing
the walk() in the global namespace rather than the address space of
the class. Thanks for your input.
On Fri, 22 Dec 2000 08:13:58 -0800, "Emile van Sebille"
<emile at fenx.com> wrote:
>I see what you mean. I've built a test that appears to
>work, but I don't immediately see the material difference
>between this and what your code does.
>
>import os
>
>class Class:
> def func(self, root, files):
> print self
> print root
> print files
>
>arg = Class()
>root = r'C:\etvwin'
>
>os.path.walk(root, Class.func, arg)
>
>HTH,
More information about the Python-list
mailing list