Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'skip:[ 30': 0.09; 'subject:error': 0.11; 'charset:iso-8859-7': 0.15; 'passing': 0.15; 'sat,': 0.15; 'competent': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:209.85.160.42': 0.16; 'subject:when': 0.16; 'tracebacks': 0.16; 'string': 0.17; 'wrote:': 0.17; '(or': 0.18; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'regular': 0.27; "skip:' 10": 0.30; 'expect': 0.31; "skip:' 20": 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'expected': 0.35; 'received:209.85': 0.35; 'list.': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:this': 0.84; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=W83C4T0Z1txGVaTdq2++zpd6Vs4jFBKvOE471So0hC8=; b=D+iUDv8gP3+HA/OMxhIZCSzu8YuJTuDQ1mj0qetNyvxhy1rkremo86Xe0euT9KLa2u ewVOtRzVTOAU79LK9vBeykjgavPE/36CDSohIA6zBSo9sEp5b60UF6OqoFMCtmegxyzF B5SwdWRNyGlG/vVsInOt0XGogPdKhCUiBB1C40SM8PsQBmIftPyrJwSkleQ8QxCIQiVA QovyyPgpOWhizloQnDBkOFiLSe9Af24NFQM5bbCEFkRoHknPtp+UTWzmwX8wKnNJcIwj 6k7slu7H39kc80gaTft+NtF2Tbb75bRKZL1JWr+v4vlG5mXOmBZffgWaQDPtkqPfLTMr GERA== MIME-Version: 1.0 X-Received: by 10.68.138.225 with SMTP id qt1mr4306542pbb.82.1362761195285; Fri, 08 Mar 2013 08:46:35 -0800 (PST) In-Reply-To: References: Date: Sat, 9 Mar 2013 03:46:35 +1100 Subject: Re: I cant understand this error when i click a link on my website From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable 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: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362761198 news.xs4all.nl 6928 [2001:888:2000:d::a6]:57443 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40869 On Sat, Mar 9, 2013 at 3:35 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA wrote: > 15 htmlpage =3D htmlpage.replace( '/home/nikos/public_html/', = '' ) > re =3D , re.search =3D , htmlpage =3D ['/home/nikos/public_html/index.html', 'pelat= ologio.py'] > : 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