On Sat, Mar 9, 2013 at 3:35 AM, Νίκος Γκρ33κ <nikos.gr...@gmail.com> wrote: > 15 htmlpage = htmlpage.replace( '/home/nikos/public_html/', '' ) > re = <module 're' from '/usr/lib64/python2.6/re.pyc'>, re.search = <function > search>, htmlpage = ['/home/nikos/public_html/index.html', 'pelatologio.py'] > <type 'exceptions.TypeError'>: expected string or buffer
The regular expression functions expect a string (or a buffer), but you're passing it a list. Learning to read exception tracebacks is one of the important parts of becoming a competent programmer. ChrisA -- http://mail.python.org/mailman/listinfo/python-list