Τη Παρασκευή, 8 Μαρτίου 2013 6:46:35 μ.μ. UTC+2, ο χρήστης Chris Angelico 
έγραψε:
> 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

but that same exact code is executed withour errors when someone is 
http://superhost.gr

the erro is produces when he is requesting a link from that page...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to