Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder3.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'exception': 0.03; 'executed': 0.07; 'skip:[ 30': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:error': 0.11; 'charset:iso-8859-7': 0.15; 'passing': 0.15; 'sat,': 0.15; 'competent': 0.16; 'subject:when': 0.16; 'tracebacks': 0.16; 'string': 0.17; 'wrote:': 0.17; '(or': 0.18; 'produces': 0.22; 'cc:2**0': 0.23; 'errors': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'am,': 0.27; 'regular': 0.27; 'chris': 0.28; "skip:' 10": 0.30; 'expect': 0.31; 'code': 0.31; "skip:' 20": 0.32; 'received:google.com': 0.34; 'expected': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'list.': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'link': 0.60; 'subject:this': 0.84; '2013': 0.84; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84 X-Received: by 10.49.3.42 with SMTP id 10mr197424qez.23.1362761437604; Fri, 08 Mar 2013 08:50:37 -0800 (PST) Newsgroups: comp.lang.python Date: Fri, 8 Mar 2013 08:50:37 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.106.213; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.106.213 MIME-Version: 1.0 Subject: Re: I cant understand this error when i click a link on my website From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362761445 news.xs4all.nl 6850 [2001:888:2000:d::a6]:34474 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40871 =D4=E7 =D0=E1=F1=E1=F3=EA=E5=F5=DE, 8 =CC=E1=F1=F4=DF=EF=F5 2013 6:46:35 = =EC.=EC. UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5= : > On Sat, Mar 9, 2013 at 3:35 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA wrote: >=20 > > 15 htmlpage =3D htmlpage.replace( '/home/nikos/public_html/'= , '' ) >=20 > > re =3D , re.search =3D = , htmlpage =3D ['/home/nikos/public_html/index.html', 'pel= atologio.py'] >=20 > > : expected string or buffer >=20 >=20 >=20 > The regular expression functions expect a string (or a buffer), but >=20 > you're passing it a list. >=20 >=20 >=20 > Learning to read exception tracebacks is one of the important parts of >=20 > becoming a competent programmer. >=20 >=20 >=20 > 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...