html parser etc help

Xah Lee xah at
Sat Jun 15 10:03:33 CEST 2002

Thanks Jeremy Yallop for help. Some follow up questions...

in the following code:

import os 
def visit(arg, dirname, fnames): 
    for file in fnames: 
        if file.endswith('.html'): 
            print file 
            print arg 

* in the os.path.walk, what's the third argument for?
* what if i want to print the full path?
* what if i want to print a particular type of file, for example only

* how to find out about a particular function or method, or what
modules are available?
in perl i'd do "perldoc -tf functionname" to find out about a
particular function. Or
, or in Java there's the API doc.


 xah at

More information about the Python-list mailing list