Re: [BangPypers] Python place holder doubt

2009-11-12 Thread Aravind Muthu
ok .sir On Thu, Nov 12, 2009 at 6:36 PM, Pradeep Gowda wrote: > On Thu, Nov 12, 2009 at 3:04 AM, Aravind Muthu > wrote: > > Try this ..i dont know exactlly correct or not. > > url=self.BASEURL > > final=+ "pmid=%d" + "&tag=ntag&type=ge" %d > > urlparse.urljoin(url,final) > > There are two e

Re: [BangPypers] Python place holder doubt

2009-11-12 Thread Pradeep Gowda
On Thu, Nov 12, 2009 at 3:04 AM, Aravind Muthu wrote: > Try this ..i dont know exactlly correct or not. > url=self.BASEURL > final=+ "pmid=%d" + "&tag=ntag&type=ge" %d > urlparse.urljoin(url,final) There are two errors in the second line 1. what is =+ ? 2. and what is the purpose of %d at th

Re: [BangPypers] Python place holder doubt

2009-11-12 Thread Aravind Muthu
here i am going to get definition from google server see..First u should use only Domail address ex: www.google.co.in it should be connected to server .. ... after that use the :www.google.co.in/search?hl=en&q=define%3A"+query+"" On 11/12/09, Aravind Muthu wrote: > what u going to access...

Re: [BangPypers] Python place holder doubt

2009-11-12 Thread Aravind Muthu
what u going to access...send the full path name pls On 11/12/09, kausikram krishnasayee wrote: >> >> url=self.BASEURL >> final=+ "pmid=%d" + "&tag=ntag&type=ge" %d >> urlparse.urljoin(url,final) > > > Final will raise an error. Concatination and Formatting cannot be done > together. > final

Re: [BangPypers] Python place holder doubt

2009-11-12 Thread kausikram krishnasayee
> > url=self.BASEURL > final=+ "pmid=%d" + "&tag=ntag&type=ge" %d > urlparse.urljoin(url,final) Final will raise an error. Concatination and Formatting cannot be done together. final should either be final = "pmid=%d" %(d,) + "&tag=ntag&type=ge" or final=("pmid=%d" + "&tag=ntag&type=ge") %(d,)

Re: [BangPypers] Python place holder doubt

2009-11-12 Thread Aravind Muthu
url = self.BASEURL + "pmid=%d" + "&tag=ntag&type=ge" %d Try this ..i dont know exactlly correct or not. url=self.BASEURL final=+ "pmid=%d" + "&tag=ntag&type=ge" %d urlparse.urljoin(url,final) Aravind. On 11/12/09, JAGANADH G wrote: > On Wed, Nov 11, 2009 at 11:41 PM, Pradeep Gowda wrote

Re: [BangPypers] Python place holder doubt

2009-11-11 Thread JAGANADH G
On Wed, Nov 11, 2009 at 11:41 PM, Pradeep Gowda wrote: > On Wed, Nov 11, 2009 at 12:47 PM, JAGANADH G wrote: > > url = self.BASEURL + "pmid=%d" + "&tag=ntag&type=ge" %d > > Did you mean: > url = self.BASEURL + "pmid=%d" % (d, ) + "&tag=ntag&type=ge" ? > > Even though this might fix your proble

Re: [BangPypers] Python place holder doubt

2009-11-11 Thread JAGANADH G
On Wed, Nov 11, 2009 at 11:41 PM, Pradeep Gowda wrote: > On Wed, Nov 11, 2009 at 12:47 PM, JAGANADH G wrote: > > url = self.BASEURL + "pmid=%d" + "&tag=ntag&type=ge" %d > > Did you mean: > url = self.BASEURL + "pmid=%d" % (d, ) + "&tag=ntag&type=ge" ? > > Even though this might fix your proble

Re: [BangPypers] Python place holder doubt

2009-11-11 Thread Pradeep Gowda
On Wed, Nov 11, 2009 at 12:47 PM, JAGANADH G wrote: > url = self.BASEURL + "pmid=%d" + "&tag=ntag&type=ge" %d Did you mean: url = self.BASEURL + "pmid=%d" % (d, ) + "&tag=ntag&type=ge" ? Even though this might fix your problem, don't use it. To encode URLs always use urlencode: http://docs.py

[BangPypers] Python place holder doubt

2009-11-11 Thread JAGANADH G
Dear All What is wrong with this expression url = self.BASEURL + "pmid=%d" + "&tag=ntag&type=ge" %d -- ** JAGANADH G http://jaganadhg.freeflux.net/blog Sent from Chennai, TN, India ___ BangPypers mailing list BangPyper