Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '"%s"': 0.09; 'formatted': 0.09; 'to:addr:comp.lang.python': 0.09; 'tuple': 0.09; 'typed': 0.09; 'cc:addr:python-list': 0.10; 'hits': 0.16; 'item)': 0.16; 'subject:Formatting': 0.16; 'wrote:': 0.17; 'creates': 0.18; 'jan': 0.18; 'please?': 0.22; 'cc:2**0': 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; 'chris': 0.28; 'link,': 0.29; 'code': 0.31; 'print': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'possible': 0.37; 'two': 0.37; 'item': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; '8bit%:100': 0.70; '8bit%:92': 0.70; 'click': 0.76; '2013': 0.84; 'subject:value': 0.84 X-Received: by 10.49.12.97 with SMTP id x1mr1917872qeb.25.1359234469497; Sat, 26 Jan 2013 13:07:49 -0800 (PST) Newsgroups: comp.lang.python Date: Sat, 26 Jan 2013 13:07:49 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.70.179; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <6ad78df4-0ec0-4760-8f5a-5ecf129c5e65@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.70.179 MIME-Version: 1.0 Subject: Re: Formatting a column's value output From: Ferrous Cranus To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359234477 news.xs4all.nl 6921 [2001:888:2000:d::a6]:54393 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37737 =CE=A4=CE=B7 =CE=A3=CE=AC=CE=B2=CE=B2=CE=B1=CF=84=CE=BF, 26 =CE=99=CE=B1=CE= =BD=CE=BF=CF=85=CE=B1=CF=81=CE=AF=CE=BF=CF=85 2013 8:04:12 =CE=BC.=CE=BC. U= TC+2, =CE=BF =CF=87=CF=81=CE=AE=CF=83=CF=84=CE=B7=CF=82 Chris Angelico =CE= =AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On Sun, Jan 27, 2013 at 4:51 AM, Ferrous Cranus w= rote: >=20 > > print ( " %= s " % item ) >=20 >=20 >=20 > > >=20 > > In the aboce code wheb 'URL' is to be typed out be print i need it to b= e formatted as a link, so the viewer can click on it. >=20 > > >=20 > > Is this possible please? >=20 >=20 >=20 > Easy, just make a tuple of item,item and have two %s markers: >=20 >=20 >=20 > print( "%s" % (item, = item) ) That code works, but it creates links for both the URL and hits columns! Only the URL must be linked not the hits column!