Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40871

Re: I cant understand this error when i click a link on my website

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 <nikos.gr33k@gmail.com>
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 <mailman.3088.1362761198.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=94.68.106.213; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4
References <e72cf106-db58-45b4-bcb8-3e519b83e2bb@googlegroups.com> <mailman.3088.1362761198.2939.python-list@python.org>
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 Νίκος Γκρ33κ <nikos.gr33k@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.3089.1362761445.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


Τη Παρασκευή, 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 | NextPrevious in thread | Find similar | Unroll thread


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