Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40871
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-03-08 08:50 -0800 |
| References | <e72cf106-db58-45b4-bcb8-3e519b83e2bb@googlegroups.com> <mailman.3088.1362761198.2939.python-list@python.org> |
| Subject | Re: I cant understand this error when i click a link on my website |
| From | Νίκος Γκρ33κ <nikos.gr33k@gmail.com> |
| Message-ID | <mailman.3089.1362761445.2939.python-list@python.org> (permalink) |
Τη Παρασκευή, 8 Μαρτίου 2013 6:46:35 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Sat, Mar 9, 2013 at 3:35 AM, Νίκος Γκρ33κ <nikos.gr33k@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...
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
I cant understand this error when i click a link on my website Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-08 08:35 -0800
Re: I cant understand this error when i click a link on my website Chris Angelico <rosuav@gmail.com> - 2013-03-09 03:46 +1100
Re: I cant understand this error when i click a link on my website Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-08 08:50 -0800
Re: I cant understand this error when i click a link on my website Sven <svenito@gmail.com> - 2013-03-08 17:04 +0000
Re: I cant understand this error when i click a link on my website info@cravendot.gr - 2013-03-08 11:16 -0800
Re: I cant understand this error when i click a link on my website info@cravendot.gr - 2013-03-08 11:16 -0800
Re: I cant understand this error when i click a link on my website MRAB <python@mrabarnett.plus.com> - 2013-03-08 17:24 +0000
Re: I cant understand this error when i click a link on my website Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-08 08:50 -0800
csiph-web