Newbie Question

Emile van Sebille emile at fenx.com
Fri Dec 22 17:46:42 CET 2000


BTW, it also works with

    def run(self):
        os.path.walk(self.root, Class.func, self)


--

Emile van Sebille
emile at fenx.com
-------------------


"Emile van Sebille" <emile at fenx.com> wrote in message
news:92005r$5e67v$1 at ID-11957.news.dfncis.de...
> I'm still not sure, as this works as well:
>
> import os
>
> class Class:
>     def __init__(self, root):
>         self.root = root
>     def func(self, root, files):
>         print self
>         print root
>         print files
>     def run(self):
>         os.path.walk(self.root, Class.func, arg)
>
> root = r'C:\etvwin'
> arg = Class(root)
>
> arg.run()
>
>





More information about the Python-list mailing list