From abpillai at gmail.com Mon Jun 2 09:34:26 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 2 Jun 2008 13:04:26 +0530 Subject: [BangPypers] HarvestMan - UI using web.py Message-ID: <8548c5f30806020034y7837a14dla17be6287dde5413@mail.gmail.com> Hi, Pursuant to my earlier post on web.py, I have started work on adding a UI (browser-based) to HarvestMan using web.py . The current source code can be checked out at, http://svn.eiao.net/robacc/experimental/HarvestMan-2.0 The UI can be invoked by $ python harvestman.py --ui . At present it just brings up a page on localhost 5940 with some introductory text on it. There is also a config file generator at harvestman/tools/genconfig.py which uses web.py forms for a UI to create a configuration file. Web.py programming is fun and developing a UI is even more fun. If someone is interested in contributing ideas/code, let me know. Thanks -- -Anand From heshan.suri at gmail.com Tue Jun 3 11:07:38 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Tue, 3 Jun 2008 14:37:38 +0530 Subject: [BangPypers] Writing a Python Client to access a web service. Message-ID: <12e5d0d90806030207xc8eafecne8e726d89aa44ba1@mail.gmail.com> Hi, I have written a web service and have deployed it using Apache Axis2. What I want to do is to invoke this service using a python script. Can anyone point me in the direction of how to do this. I will be grateful If anyone can give me a web reference to a code sample.I can do this with java. To give you an idea of what kind of a thing I want to do , I am attaching my java client code below. import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.client.Options; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.impl.builder.StAXOMBuilder; import javax.xml.stream.XMLStreamException; import java.io.ByteArrayInputStream; public class myClient { private static EndpointReference targetEPR = new EndpointReference(" http://localhost:8070/axis2/services/annotationScript/deduct"); //http://localhost:8080/axis2/services/annotationScript/f public static OMElement getPayload() throws XMLStreamException { String str1 = "4"; String str2 = "1.84.87594"; String str3 = "1.84.87594"; StAXOMBuilder builder = new StAXOMBuilder(new ByteArrayInputStream(str2.getBytes())); return builder.getDocumentElement(); } public static void main(String[] args) throws Exception { ServiceClient sender = new ServiceClient(); Options op = new Options(); op.setTo(targetEPR); sender.setOptions(op); OMElement response = sender.sendReceive(getPayload()); System.out.println(response); } } Thanx in advance -- Regards, Heshan Suriyaarachchi -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Tue Jun 3 11:20:48 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 3 Jun 2008 14:50:48 +0530 Subject: [BangPypers] Writing a Python Client to access a web service. In-Reply-To: <12e5d0d90806030207xc8eafecne8e726d89aa44ba1@mail.gmail.com> References: <12e5d0d90806030207xc8eafecne8e726d89aa44ba1@mail.gmail.com> Message-ID: <8548c5f30806030220uefca5eco49b15010f8d4ce47@mail.gmail.com> http://pywebsvcs.sourceforge.net/ You need SOAPpy for accessing a SOAP based web-service. --Anand On Tue, Jun 3, 2008 at 2:37 PM, Heshan Suriyaarachchi wrote: > Hi, > I have written a web service and have deployed it using Apache Axis2. > What I want to do is to invoke this service using a python script. Can > anyone point me in the direction of how to do this. I will be grateful If > anyone can give me a web reference to a code sample.I can do this with java. > To give you an idea of what kind of a thing I want to do , I am attaching my > java client code below. > > import org.apache.axis2.addressing.EndpointReference; > import org.apache.axis2.client.ServiceClient; > import org.apache.axis2.client.Options; > import org.apache.axiom.om.OMElement; > import org.apache.axiom.om.OMFactory; > import org.apache.axiom.om.OMAbstractFactory; > import org.apache.axiom.om.impl.builder.StAXOMBuilder; > import javax.xml.stream.XMLStreamException; > import java.io.ByteArrayInputStream; > > public class myClient { > private static EndpointReference targetEPR = > new > EndpointReference("http://localhost:8070/axis2/services/annotationScript/deduct"); > //http://localhost:8080/axis2/services/annotationScript/f > > public static OMElement getPayload() throws XMLStreamException { > String str1 = "4"; > String str2 = > "1.84.87594"; > String str3 = "1.84.87594"; > StAXOMBuilder builder = new StAXOMBuilder(new > ByteArrayInputStream(str2.getBytes())); > return builder.getDocumentElement(); > } > > public static void main(String[] args) throws Exception { > ServiceClient sender = new ServiceClient(); > Options op = new Options(); > op.setTo(targetEPR); > sender.setOptions(op); > OMElement response = sender.sendReceive(getPayload()); > System.out.println(response); > } > } > > > Thanx in advance > > -- > Regards, > Heshan Suriyaarachchi > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From vinayakh at gmail.com Tue Jun 3 11:34:33 2008 From: vinayakh at gmail.com (Vinayak Hegde) Date: Tue, 3 Jun 2008 15:04:33 +0530 Subject: [BangPypers] Writing a Python Client to access a web service. In-Reply-To: <12e5d0d90806030207xc8eafecne8e726d89aa44ba1@mail.gmail.com> References: <12e5d0d90806030207xc8eafecne8e726d89aa44ba1@mail.gmail.com> Message-ID: <38940f3c0806030234l27bda42bv7763c8294b942670@mail.gmail.com> On Tue, Jun 3, 2008 at 2:37 PM, Heshan Suriyaarachchi wrote: > Hi, > I have written a web service and have deployed it using Apache Axis2. > What I want to do is to invoke this service using a python script. Can > anyone point me in the direction of how to do this. I will be grateful If > anyone can give me a web reference to a code sample.I can do this with java. > To give you an idea of what kind of a thing I want to do , I am attaching my > java client code below. > > import org.apache.axis2.addressing.EndpointReference; > import org.apache.axis2.client.ServiceClient; > import org.apache.axis2.client.Options; > import org.apache.axiom.om.OMElement; > import org.apache.axiom.om.OMFactory; > import org.apache.axiom.om.OMAbstractFactory; > import org.apache.axiom.om.impl.builder.StAXOMBuilder; > import javax.xml.stream.XMLStreamException; > import java.io.ByteArrayInputStream; > > public class myClient { > private static EndpointReference targetEPR = > new > EndpointReference("http://localhost:8070/axis2/services/annotationScript/deduct"); > //http://localhost:8080/axis2/services/annotationScript/f > > public static OMElement getPayload() throws XMLStreamException { > String str1 = "4"; > String str2 = > "1.84.87594"; > String str3 = "1.84.87594"; > StAXOMBuilder builder = new StAXOMBuilder(new > ByteArrayInputStream(str2.getBytes())); > return builder.getDocumentElement(); > } > > public static void main(String[] args) throws Exception { > ServiceClient sender = new ServiceClient(); > Options op = new Options(); > op.setTo(targetEPR); > sender.setOptions(op); > OMElement response = sender.sendReceive(getPayload()); > System.out.println(response); > } > } Dive into python has a good tutorial on webservices using python. http://www.diveintopython.org/soap_web_services/ The rest of the book is pretty readable as well. -- Vinayak From stylesen at gmail.com Wed Jun 4 14:58:25 2008 From: stylesen at gmail.com (Senthil Kumaran S) Date: Wed, 4 Jun 2008 18:28:25 +0530 Subject: [BangPypers] My first Python script In-Reply-To: <5d3edfaa0805290558n7a37053at877d8dff05eec30@mail.gmail.com> References: <5d3edfaa0805290558n7a37053at877d8dff05eec30@mail.gmail.com> Message-ID: <5ef2113c0806040558p74b30d3cm2c9fd960ace0777d@mail.gmail.com> On Thu, May 29, 2008 at 6:28 PM, arindam majumdar wrote: > I am sending you the httpd.conf file which i am using and the modules which > are their in my apache webserver, i will also send you the error page and > the log file which is being displayed at the browser. Your mptest.py has indentation problem. Please correct that. -- Senthil Kumaran S http://www.stylesen.org/ From pratap.iiit at gmail.com Mon Jun 9 13:14:38 2008 From: pratap.iiit at gmail.com (Pratap) Date: Mon, 9 Jun 2008 16:44:38 +0530 Subject: [BangPypers] Hi all Message-ID: *I'm fairly new to Python, and have yet to discover all the little details, that may make my programs look leaner and perhaps become faster... I was trying to do a lots of thing and one of them is here which is as i have a list lists=['name','jhon', 'age','30'] and i want to make a string which is like string="x['name']='jhon' and x['age']=30" so is it possible in python ? ** * -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashanthellina at gmail.com Mon Jun 9 13:28:10 2008 From: prashanthellina at gmail.com (Prashanth Ellina) Date: Mon, 9 Jun 2008 16:58:10 +0530 Subject: [BangPypers] Hi all In-Reply-To: References: Message-ID: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> *l=['name','jhon', 'age','30']* print dict([(l[i], l[i+1]) for i in xrange(0, len(l), 2)]) On Mon, Jun 9, 2008 at 4:44 PM, Pratap wrote: > *I'm fairly new to Python, and have yet to discover all the little details, that may make my programs look leaner and perhaps become faster... > I was trying to do a lots of thing and one of them is here which is as > > i have a list lists=['name','jhon', 'age','30'] > and i want to make a string which is like > string="x['name']='jhon' and x['age']=30" > > so is it possible in python ? ** > * > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- http://blog.prashanthellina.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashanthellina at gmail.com Mon Jun 9 14:44:38 2008 From: prashanthellina at gmail.com (Prashanth Ellina) Date: Mon, 9 Jun 2008 18:14:38 +0530 Subject: [BangPypers] Hi all In-Reply-To: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> References: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> Message-ID: <281962dd0806090544s3a388ecckee32c4bbb00d0e38@mail.gmail.com> I misread your question. here is the correct soln print ' and '.join(["x['%s'] = '%s'" % (l[i], l[i+1]) for i in xrange(0, len(l), 2)]) On Mon, Jun 9, 2008 at 4:58 PM, Prashanth Ellina wrote: > *l=['name','jhon', 'age','30']* > > print dict([(l[i], l[i+1]) for i in xrange(0, len(l), 2)]) > > > On Mon, Jun 9, 2008 at 4:44 PM, Pratap wrote: > >> *I'm fairly new to Python, and have yet to discover all the little details, that may make my programs look leaner and perhaps become faster... >> >> I was trying to do a lots of thing and one of them is here which is as >> >> i have a list lists=['name','jhon', 'age','30'] >> and i want to make a string which is like >> string="x['name']='jhon' and x['age']=30" >> >> >> so is it possible in python ? ** >> * >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > -- > http://blog.prashanthellina.com -- http://blog.prashanthellina.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gates.plusplus at gmail.com Mon Jun 9 16:57:25 2008 From: gates.plusplus at gmail.com (Rohan Sharma) Date: Mon, 9 Jun 2008 20:27:25 +0530 Subject: [BangPypers] Hi all In-Reply-To: <281962dd0806090544s3a388ecckee32c4bbb00d0e38@mail.gmail.com> References: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> <281962dd0806090544s3a388ecckee32c4bbb00d0e38@mail.gmail.com> Message-ID: <7dd811cb0806090757j3b948a03v110f9951e69d4aeb@mail.gmail.com> Pratap: why exactly do you want to do this? On Mon, Jun 9, 2008 at 6:14 PM, Prashanth Ellina wrote: > I misread your question. here is the correct soln > > print ' and '.join(["x['%s'] = '%s'" % (l[i], l[i+1]) for i in xrange(0, > len(l), 2)]) > > On Mon, Jun 9, 2008 at 4:58 PM, Prashanth Ellina > wrote: >> >> l=['name','jhon', 'age','30'] >> >> print dict([(l[i], l[i+1]) for i in xrange(0, len(l), 2)]) >> >> >> On Mon, Jun 9, 2008 at 4:44 PM, Pratap wrote: >>> >>> I'm fairly new to Python, and have yet to discover all the little >>> details, that may make my programs look leaner and perhaps become faster... >>> >>> >>> I was trying to do a lots of thing and one of them is here which is as >>> >>> >>> i have a list lists=['name','jhon', 'age','30'] >>> and i want to make a string which is like >>> string="x['name']='jhon' and x['age']=30" >>> >>> >>> >>> >>> so is it possible in python ? >>> >>> _______________________________________________ >>> BangPypers mailing list >>> BangPypers at python.org >>> http://mail.python.org/mailman/listinfo/bangpypers >>> >> >> >> >> -- >> http://blog.prashanthellina.com > > > -- > http://blog.prashanthellina.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From pratap.iiit at gmail.com Mon Jun 9 18:16:52 2008 From: pratap.iiit at gmail.com (Pratap) Date: Mon, 9 Jun 2008 21:46:52 +0530 Subject: [BangPypers] Hi all In-Reply-To: <7dd811cb0806090757j3b948a03v110f9951e69d4aeb@mail.gmail.com> References: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> <281962dd0806090544s3a388ecckee32c4bbb00d0e38@mail.gmail.com> <7dd811cb0806090757j3b948a03v110f9951e69d4aeb@mail.gmail.com> Message-ID: Hi I am tryin to make a database tool on python dats y ?are u online On 6/9/08, Rohan Sharma wrote: > > Pratap: why exactly do you want to do this? > > On Mon, Jun 9, 2008 at 6:14 PM, Prashanth Ellina > wrote: > > I misread your question. here is the correct soln > > > > print ' and '.join(["x['%s'] = '%s'" % (l[i], l[i+1]) for i in xrange(0, > > len(l), 2)]) > > > > On Mon, Jun 9, 2008 at 4:58 PM, Prashanth Ellina < > prashanthellina at gmail.com> > > wrote: > >> > >> l=['name','jhon', 'age','30'] > >> > >> print dict([(l[i], l[i+1]) for i in xrange(0, len(l), 2)]) > >> > >> > >> On Mon, Jun 9, 2008 at 4:44 PM, Pratap wrote: > >>> > >>> I'm fairly new to Python, and have yet to discover all the little > >>> details, that may make my programs look leaner and perhaps > become faster... > >>> > >>> > >>> I was trying to do a lots of thing and one of them is here which is as > >>> > >>> > >>> i have a list lists=['name','jhon', 'age','30'] > >>> and i want to make a string which is like > >>> string="x['name']='jhon' and x['age']=30" > >>> > >>> > >>> > >>> > >>> so is it possible in python ? > >>> > >>> _______________________________________________ > >>> BangPypers mailing list > >>> BangPypers at python.org > >>> http://mail.python.org/mailman/listinfo/bangpypers > >>> > >> > >> > >> > >> -- > >> http://blog.prashanthellina.com > > > > > > -- > > http://blog.prashanthellina.com > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anushshetty at gmail.com Mon Jun 9 18:19:54 2008 From: anushshetty at gmail.com (Anush Shetty) Date: Mon, 9 Jun 2008 21:49:54 +0530 Subject: [BangPypers] Hi all In-Reply-To: References: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> <281962dd0806090544s3a388ecckee32c4bbb00d0e38@mail.gmail.com> <7dd811cb0806090757j3b948a03v110f9951e69d4aeb@mail.gmail.com> Message-ID: <601c1ad00806090919w333c2d1eh3f18b9ff14b54f1a@mail.gmail.com> On Mon, Jun 9, 2008 at 9:46 PM, Pratap wrote: > Hi > I am tryin to make a database tool on python dats y ?are u online > It would be good if members could avoid using SMS lingo here. - Anush -------------- next part -------------- An HTML attachment was scrubbed... URL: From gates.plusplus at gmail.com Mon Jun 9 18:21:26 2008 From: gates.plusplus at gmail.com (Rohan Sharma) Date: Mon, 9 Jun 2008 21:51:26 +0530 Subject: [BangPypers] Hi all In-Reply-To: References: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> <281962dd0806090544s3a388ecckee32c4bbb00d0e38@mail.gmail.com> <7dd811cb0806090757j3b948a03v110f9951e69d4aeb@mail.gmail.com> Message-ID: <7dd811cb0806090921u3d0cd324nd2103feccae4e5d6@mail.gmail.com> Okay, cool. Continue experimenting and learning. On Mon, Jun 9, 2008 at 9:46 PM, Pratap wrote: > Hi > I am tryin to make a database tool on python dats y ?are u online > > > On 6/9/08, Rohan Sharma wrote: >> >> Pratap: why exactly do you want to do this? >> >> On Mon, Jun 9, 2008 at 6:14 PM, Prashanth Ellina >> wrote: >> > I misread your question. here is the correct soln >> > >> > print ' and '.join(["x['%s'] = '%s'" % (l[i], l[i+1]) for i in xrange(0, >> > len(l), 2)]) >> > >> > On Mon, Jun 9, 2008 at 4:58 PM, Prashanth Ellina >> > >> > wrote: >> >> >> >> l=['name','jhon', 'age','30'] >> >> >> >> print dict([(l[i], l[i+1]) for i in xrange(0, len(l), 2)]) >> >> >> >> >> >> On Mon, Jun 9, 2008 at 4:44 PM, Pratap wrote: >> >>> >> >>> I'm fairly new to Python, and have yet to discover all the little >> >>> details, that may make my programs look leaner and perhaps >> >>> become faster... >> >>> >> >>> >> >>> I was trying to do a lots of thing and one of them is here which is as >> >>> >> >>> >> >>> i have a list lists=['name','jhon', 'age','30'] >> >>> and i want to make a string which is like >> >>> string="x['name']='jhon' and x['age']=30" >> >>> >> >>> >> >>> >> >>> >> >>> so is it possible in python ? >> >>> >> >>> _______________________________________________ >> >>> BangPypers mailing list >> >>> BangPypers at python.org >> >>> http://mail.python.org/mailman/listinfo/bangpypers >> >>> >> >> >> >> >> >> >> >> -- >> >> http://blog.prashanthellina.com >> > >> > >> > -- >> > http://blog.prashanthellina.com >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From pratap.iiit at gmail.com Mon Jun 9 18:25:01 2008 From: pratap.iiit at gmail.com (Pratap) Date: Mon, 9 Jun 2008 21:55:01 +0530 Subject: [BangPypers] Hi all In-Reply-To: <7dd811cb0806090921u3d0cd324nd2103feccae4e5d6@mail.gmail.com> References: <281962dd0806090428g1deb683o745822c9e7980455@mail.gmail.com> <281962dd0806090544s3a388ecckee32c4bbb00d0e38@mail.gmail.com> <7dd811cb0806090757j3b948a03v110f9951e69d4aeb@mail.gmail.com> <7dd811cb0806090921u3d0cd324nd2103feccae4e5d6@mail.gmail.com> Message-ID: ya sure ill do dat On 6/9/08, Rohan Sharma wrote: > > Okay, cool. Continue experimenting and learning. > > On Mon, Jun 9, 2008 at 9:46 PM, Pratap wrote: > > Hi > > I am tryin to make a database tool on python dats y ?are u online > > > > > > On 6/9/08, Rohan Sharma wrote: > >> > >> Pratap: why exactly do you want to do this? > >> > >> On Mon, Jun 9, 2008 at 6:14 PM, Prashanth Ellina > >> wrote: > >> > I misread your question. here is the correct soln > >> > > >> > print ' and '.join(["x['%s'] = '%s'" % (l[i], l[i+1]) for i in > xrange(0, > >> > len(l), 2)]) > >> > > >> > On Mon, Jun 9, 2008 at 4:58 PM, Prashanth Ellina > >> > > >> > wrote: > >> >> > >> >> l=['name','jhon', 'age','30'] > >> >> > >> >> print dict([(l[i], l[i+1]) for i in xrange(0, len(l), 2)]) > >> >> > >> >> > >> >> On Mon, Jun 9, 2008 at 4:44 PM, Pratap > wrote: > >> >>> > >> >>> I'm fairly new to Python, and have yet to discover all the little > >> >>> details, that may make my programs look leaner and perhaps > >> >>> become faster... > >> >>> > >> >>> > >> >>> I was trying to do a lots of thing and one of them is here which is > as > >> >>> > >> >>> > >> >>> i have a list lists=['name','jhon', 'age','30'] > >> >>> and i want to make a string which is like > >> >>> string="x['name']='jhon' and x['age']=30" > >> >>> > >> >>> > >> >>> > >> >>> > >> >>> so is it possible in python ? > >> >>> > >> >>> _______________________________________________ > >> >>> BangPypers mailing list > >> >>> BangPypers at python.org > >> >>> http://mail.python.org/mailman/listinfo/bangpypers > >> >>> > >> >> > >> >> > >> >> > >> >> -- > >> >> http://blog.prashanthellina.com > >> > > >> > > >> > -- > >> > http://blog.prashanthellina.com > >> > _______________________________________________ > >> > BangPypers mailing list > >> > BangPypers at python.org > >> > http://mail.python.org/mailman/listinfo/bangpypers > >> > > >> > > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shan_anandh at yahoo.co.in Sun Jun 15 09:52:16 2008 From: shan_anandh at yahoo.co.in (shan anandh) Date: Sun, 15 Jun 2008 13:22:16 +0530 (IST) Subject: [BangPypers] Hi all Message-ID: <189788.92284.qm@web94409.mail.in2.yahoo.com> A database tool ... have you defined any design goals for that ? ----- Original Message ---- From: Pratap To: Bangalore Python Users Group - India Sent: Monday, 9 June, 2008 9:55:01 PM Subject: Re: [BangPypers] Hi all ya sure ill do dat On 6/9/08, Rohan Sharma wrote: Okay, cool. Continue experimenting and learning. On Mon, Jun 9, 2008 at 9:46 PM, Pratap wrote: > Hi > I am tryin to make a database tool on python dats y ?are u online > > > On 6/9/08, Rohan Sharma wrote: >> >> Pratap: why exactly do you want to do this? >> >> On Mon, Jun 9, 2008 at 6:14 PM, Prashanth Ellina >> wrote: >> > I misread your question. here is the correct soln >> > >> > print ' and '.join(["x['%s'] = '%s'" % (l[i], l[i+1]) for i in xrange(0, >> > len(l), 2)]) >> > >> > On Mon, Jun 9, 2008 at 4:58 PM, Prashanth Ellina >> > >> > wrote: >> >> >> >> l=['name','jhon', 'age','30'] >> >> >> >> print dict([(l[i], l[i+1]) for i in xrange(0, len(l), 2)]) >> >> >> >> >> >> On Mon, Jun 9, 2008 at 4:44 PM, Pratap wrote: >> >>> >> >>> I'm fairly new to Python, and have yet to discover all the little >> >>> details, that may make my programs look leaner and perhaps >> >>> become faster... >> >>> >> >>> >> >>> I was trying to do a lots of thing and one of them is here which is as >> >>> >> >>> >> >>> i have a list lists=['name','jhon', 'age','30'] >> >>> and i want to make a string which is like >> >>> string="x['name']='jhon' and x['age']=30" >> >>> >> >>> >> >>> >> >>> >> >>> so is it possible in python ? >> >>> >> >>> _______________________________________________ >> >>> BangPypers mailing list >> >>> BangPypers at python.org >> >>> http://mail.python.org/mailman/listinfo/bangpypers >> >>> >> >> >> >> >> >> >> >> -- >> >> http://blog.prashanthellina.com >> > >> > >> > -- >> > http://blog.prashanthellina.com >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Best Jokes, Best Friends, Best Food and more. Go to http://in.promos.yahoo.com/groups/bestofyahoo/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pratap.iiit at gmail.com Sun Jun 15 14:49:14 2008 From: pratap.iiit at gmail.com (Pratap) Date: Sun, 15 Jun 2008 18:19:14 +0530 Subject: [BangPypers] Hi all In-Reply-To: <189788.92284.qm@web94409.mail.in2.yahoo.com> References: <189788.92284.qm@web94409.mail.in2.yahoo.com> Message-ID: Ya i did that but i want to make it working properly man? -------------- next part -------------- An HTML attachment was scrubbed... URL: From nirakarsethy at gmail.com Mon Jun 16 21:58:01 2008 From: nirakarsethy at gmail.com (Nirakar Sethy) Date: Tue, 17 Jun 2008 01:28:01 +0530 Subject: [BangPypers] hi everybody Message-ID: hi all. i'm new to python. On windows we do have a GUI (like a notepad) In which we can script. How to get that on Linux (Fedora 8) Thanks Nirakar Sethy Digital Artist -------------- next part -------------- An HTML attachment was scrubbed... URL: From kushaldas at gmail.com Tue Jun 17 06:35:54 2008 From: kushaldas at gmail.com (Kushal Das) Date: Tue, 17 Jun 2008 10:05:54 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: Message-ID: <200806171005.54759.kushaldas@gmail.com> On Tuesday 17 June 2008 01:28:01 am Nirakar Sethy wrote: > hi all. > i'm new to python. On windows we do have a GUI (like a notepad) In which we > can script. How to get that on Linux (Fedora 8) Give as root: #yum install eric Kushal -- Fedora Ambassador, India http://kushaldas.in http://dgplug.org (Linux User Group of Durgapur) From pythonic at gmail.com Tue Jun 17 06:37:19 2008 From: pythonic at gmail.com (Pythonic) Date: Tue, 17 Jun 2008 10:07:19 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: Message-ID: <48573F7F.8060403@gmail.com> Nirakar Sethy wrote: > > hi all. > i'm new to python. On windows we do have a GUI (like a notepad) In > which we can script. How to get that on Linux (Fedora 8) > > Thanks > Nirakar Sethy > Digital Artist You will certainly find one or more text editors in accessories. Else on prompt type gedit, it would mostly be there. I would recommend you learning vim/gvim later. From parth.technofreak at gmail.com Tue Jun 17 06:39:03 2008 From: parth.technofreak at gmail.com (Parthan SR) Date: Tue, 17 Jun 2008 10:09:03 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: Message-ID: <48573FE7.6040309@gmail.com> Nirakar Sethy wrote: > > hi all. > i'm new to python. On windows we do have a GUI (like a notepad) In > which we can script. How to get that on Linux (Fedora 8) > Gedit in GNOME and Kate in KDE -- --- With Regards, Parthan "technofreak" 2FF01026 http://blog.technofreak.in From pintooo15 at gmail.com Tue Jun 17 07:21:57 2008 From: pintooo15 at gmail.com (Diabolic Preacher) Date: Tue, 17 Jun 2008 10:51:57 +0530 Subject: [BangPypers] hi everybody In-Reply-To: <48573FE7.6040309@gmail.com> References: <48573FE7.6040309@gmail.com> Message-ID: On Tue, Jun 17, 2008 at 10:09 AM, Parthan SR wrote: > Nirakar Sethy wrote: >> >> hi all. >> i'm new to python. On windows we do have a GUI (like a notepad) In which >> we can script. How to get that on Linux (Fedora 8) I suppose he is looking for IDLE perhaps. But on linux the editor choices are way too many. I suppose IDLE is available for linux distros as well, but I prefer kate...since I prefer KDE. Diabolic Preacher From abpillai at gmail.com Tue Jun 17 08:31:39 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 17 Jun 2008 12:01:39 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: <48573FE7.6040309@gmail.com> Message-ID: <8548c5f30806162331l63c06f4aj49abb01afafc54b3@mail.gmail.com> Hi Nirakar, Welcome to Python! You can look in the group archives for numerous Editor discussions. Regards On Tue, Jun 17, 2008 at 10:51 AM, Diabolic Preacher wrote: > On Tue, Jun 17, 2008 at 10:09 AM, Parthan SR > wrote: >> Nirakar Sethy wrote: >>> >>> hi all. >>> i'm new to python. On windows we do have a GUI (like a notepad) In which >>> we can script. How to get that on Linux (Fedora 8) > > I suppose he is looking for IDLE perhaps. But on linux the editor > choices are way too many. I suppose IDLE is available for linux > distros as well, but I prefer kate...since I prefer KDE. > > Diabolic Preacher > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -Anand From zoltan.jose at gmail.com Tue Jun 17 08:37:30 2008 From: zoltan.jose at gmail.com (Timmy Jose) Date: Tue, 17 Jun 2008 12:07:30 +0530 Subject: [BangPypers] hi everybody In-Reply-To: <8548c5f30806162331l63c06f4aj49abb01afafc54b3@mail.gmail.com> References: <48573FE7.6040309@gmail.com> <8548c5f30806162331l63c06f4aj49abb01afafc54b3@mail.gmail.com> Message-ID: I guess that is quite a polite response to that query! Imagine if this question were posted on comp.lang.python or such like! ;-) On 6/17/08, Anand Balachandran Pillai wrote: > Hi Nirakar, > > Welcome to Python! > > You can look in the group archives for numerous Editor discussions. > > Regards > > > On Tue, Jun 17, 2008 at 10:51 AM, Diabolic Preacher wrote: > > On Tue, Jun 17, 2008 at 10:09 AM, Parthan SR > > wrote: > >> Nirakar Sethy wrote: > >>> > >>> hi all. > >>> i'm new to python. On windows we do have a GUI (like a notepad) In which > >>> we can script. How to get that on Linux (Fedora 8) > > > > I suppose he is looking for IDLE perhaps. But on linux the editor > > choices are way too many. I suppose IDLE is available for linux > > distros as well, but I prefer kate...since I prefer KDE. > > > > Diabolic Preacher > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > -- > > -Anand > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Bwahahahahahahahahahahahaha! From vsapre80 at gmail.com Tue Jun 17 11:30:08 2008 From: vsapre80 at gmail.com (Vishal) Date: Tue, 17 Jun 2008 15:00:08 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: <48573FE7.6040309@gmail.com> <8548c5f30806162331l63c06f4aj49abb01afafc54b3@mail.gmail.com> Message-ID: Hi Nirakar, Here;s a list of "almost" everything that's available for use for Python: http://wiki.python.org/moin/BangPypers/PythonEditors Enjoy, Vishal On Tue, Jun 17, 2008 at 12:07 PM, Timmy Jose wrote: > I guess that is quite a polite response to that query! Imagine if this > question were posted on comp.lang.python or such like! ;-) > > > > On 6/17/08, Anand Balachandran Pillai wrote: > > Hi Nirakar, > > > > Welcome to Python! > > > > You can look in the group archives for numerous Editor discussions. > > > > Regards > > > > > > On Tue, Jun 17, 2008 at 10:51 AM, Diabolic Preacher < > pintooo15 at gmail.com> wrote: > > > On Tue, Jun 17, 2008 at 10:09 AM, Parthan SR > > > wrote: > > >> Nirakar Sethy wrote: > > >>> > > >>> hi all. > > >>> i'm new to python. On windows we do have a GUI (like a notepad) In > which > > >>> we can script. How to get that on Linux (Fedora 8) > > > > > > I suppose he is looking for IDLE perhaps. But on linux the editor > > > choices are way too many. I suppose IDLE is available for linux > > > distros as well, but I prefer kate...since I prefer KDE. > > > > > > Diabolic Preacher > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > -- > > > > -Anand > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > Bwahahahahahahahahahahahaha! > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it. Visit: http://members.soundclick.com/mukulsapre http://www.soundclick.com/gurusgrace Nice gist of all Goodness: ???????? ??????? ????????? ?????? ????? | ????????? ??????? ????? ??????? | -------------- next part -------------- An HTML attachment was scrubbed... URL: From pratap.iiit at gmail.com Tue Jun 17 11:49:49 2008 From: pratap.iiit at gmail.com (Pratap) Date: Tue, 17 Jun 2008 15:19:49 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: <48573FE7.6040309@gmail.com> <8548c5f30806162331l63c06f4aj49abb01afafc54b3@mail.gmail.com> Message-ID: do not waste your time for searching editors use notpad++ there u will get lots of language support and if u r interested then try to find out the crack for wing ide and use that one i think that one is better On 6/17/08, Vishal wrote: > > Hi Nirakar, > > Here;s a list of "almost" everything that's available for use for Python: > http://wiki.python.org/moin/BangPypers/PythonEditors > > Enjoy, > Vishal > > On Tue, Jun 17, 2008 at 12:07 PM, Timmy Jose > wrote: > >> I guess that is quite a polite response to that query! Imagine if this >> question were posted on comp.lang.python or such like! ;-) >> >> >> >> On 6/17/08, Anand Balachandran Pillai wrote: >> > Hi Nirakar, >> > >> > Welcome to Python! >> > >> > You can look in the group archives for numerous Editor discussions. >> > >> > Regards >> > >> > >> > On Tue, Jun 17, 2008 at 10:51 AM, Diabolic Preacher < >> pintooo15 at gmail.com> wrote: >> > > On Tue, Jun 17, 2008 at 10:09 AM, Parthan SR >> > > wrote: >> > >> Nirakar Sethy wrote: >> > >>> >> > >>> hi all. >> > >>> i'm new to python. On windows we do have a GUI (like a notepad) In >> which >> > >>> we can script. How to get that on Linux (Fedora 8) >> > > >> > > I suppose he is looking for IDLE perhaps. But on linux the editor >> > > choices are way too many. I suppose IDLE is available for linux >> > > distros as well, but I prefer kate...since I prefer KDE. >> > > >> > > Diabolic Preacher >> > > _______________________________________________ >> > > BangPypers mailing list >> > > BangPypers at python.org >> > > http://mail.python.org/mailman/listinfo/bangpypers >> > > >> > >> > >> > >> > >> > -- >> > >> > -Anand >> > >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> >> -- >> Bwahahahahahahahahahahahaha! >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > > -- > A Strong and Positive attitude creates more miracles than anything else. > Because...Life is 10% how you make it, and 90% how you take it. > > Visit: > http://members.soundclick.com/mukulsapre > http://www.soundclick.com/gurusgrace > > Nice gist of all Goodness: > ???????? ??????? ????????? ?????? ????? | > ????????? ??????? ????? ??????? | > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From venkatasubramanian at gmail.com Tue Jun 17 12:13:56 2008 From: venkatasubramanian at gmail.com (venkata subramanian m) Date: Tue, 17 Jun 2008 15:43:56 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: <48573FE7.6040309@gmail.com> <8548c5f30806162331l63c06f4aj49abb01afafc54b3@mail.gmail.com> Message-ID: <48578E64.6080800@gmail.com> your editor/IDE is like the wand in Harry Potter. Your wand will find you (eventually). One of the best ways to start is to find "some" basic way to input your code, save it properly, and spend more time with coding than choosing what to code in. Soon, you will come across other editors which you might find more suitable. Choosing the right tools (editor, for example) is a continuous (and fun) process. One nice thing about Python is that it was not 'designed' with an IDE in mind, i.e, it was not meant to be used with a particular IDE. I guess, there are some languages which are designed that way. Regards, Venkat Pratap wrote: > do not waste your time for searching editors use notpad++ there u will > get lots of language support and if u r interested then try to find > out the crack for wing ide and use that one i think that one is better > > On 6/17/08, *Vishal* > > wrote: > > Hi Nirakar, > > Here;s a list of "almost" everything that's available for use for > Python: > http://wiki.python.org/moin/BangPypers/PythonEditors > > > Enjoy, > Vishal > > > On Tue, Jun 17, 2008 at 12:07 PM, Timmy Jose > > wrote: > > I guess that is quite a polite response to that query! Imagine > if this > question were posted on comp.lang.python or such like! ;-) > > > > On 6/17/08, Anand Balachandran Pillai > wrote: > > Hi Nirakar, > > > > Welcome to Python! > > > > You can look in the group archives for numerous Editor > discussions. > > > > Regards > > > > > > On Tue, Jun 17, 2008 at 10:51 AM, Diabolic Preacher > > wrote: > > > On Tue, Jun 17, 2008 at 10:09 AM, Parthan SR > > > > wrote: > > >> Nirakar Sethy wrote: > > >>> > > >>> hi all. > > >>> i'm new to python. On windows we do have a GUI (like a > notepad) In which > > >>> we can script. How to get that on Linux (Fedora 8) > > > > > > I suppose he is looking for IDLE perhaps. But on linux the > editor > > > choices are way too many. I suppose IDLE is available for > linux > > > distros as well, but I prefer kate...since I prefer KDE. > > > > > > Diabolic Preacher > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > -- > > > > -Anand > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Bwahahahahahahahahahahahaha! > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > A Strong and Positive attitude creates more miracles than anything > else. Because...Life is 10% how you make it, and 90% how you take it. > > Visit: > http://members.soundclick.com/mukulsapre > http://www.soundclick.com/gurusgrace > > Nice gist of all Goodness: > ???????? ??????? ????????? ?????? ????? | > ????????? ??????? ????? ??????? | > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > ------------------------------------------------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From madhav.bnk at gmail.com Wed Jun 18 14:12:07 2008 From: madhav.bnk at gmail.com (B.Nanda Kishore) Date: Wed, 18 Jun 2008 17:42:07 +0530 Subject: [BangPypers] Detect Soft and Hard Email Bounces Message-ID: <26030bef0806180512s5363775cvad47bad13cc8b24a@mail.gmail.com> Hello everybody, I need a mechanism to detect soft bounced emails and hard bounced emails. How do I do it? -- Regards Nanda, Orglex Inc Email: nandakishore at orglex.com "Without Breakdowns, there won't be Breakthroughs." -------------- next part -------------- An HTML attachment was scrubbed... URL: From gnuyoga at gmail.com Thu Jun 19 22:07:36 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 20 Jun 2008 01:37:36 +0530 Subject: [BangPypers] Do u have any python training requirement ? Message-ID: <485ABC88.1000104@gmail.com> hi folks, Sorry for posting a non-technical mail in the python group. Of late i have started seeing email which ask for python trainers. I do train people in FLOSS. Since i can train people in python, i thought i will inform you all as well. If any of your company would want a python/jython/java trainer (beginner / advanced level). I also do consulting and training in other areas. Please click the following link to know more. http://docs.google.com/Doc?id=dftfn9dc_6hkss78g9 Note: Would be happy to get in touch with fellow trainer / consultant in this group. thanks - sree -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From anandology at gmail.com Fri Jun 20 03:26:06 2008 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 20 Jun 2008 06:56:06 +0530 Subject: [BangPypers] Do u have any python training requirement ? In-Reply-To: <485ABC88.1000104@gmail.com> References: <485ABC88.1000104@gmail.com> Message-ID: <41139fcb0806191826h150f090pf1ee333aff67eb48@mail.gmail.com> > > Note: Would be happy to get in touch with fellow trainer / consultant in > this group. > Hi Sree, I offer training in Python. http://pythonprogramming.jottit.com Anand From ramdas at developeriq.com Fri Jun 20 07:17:43 2008 From: ramdas at developeriq.com (Ramdas S) Date: Fri, 20 Jun 2008 10:47:43 +0530 Subject: [BangPypers] Do u have any python training requirement ? In-Reply-To: <41139fcb0806191826h150f090pf1ee333aff67eb48@mail.gmail.com> References: <485ABC88.1000104@gmail.com> <41139fcb0806191826h150f090pf1ee333aff67eb48@mail.gmail.com> Message-ID: <6e38f9f00806192217m2cbab4b9hdc4b97bae9c0230f@mail.gmail.com> Can you guys also tell us how much it costs. I keep getting inquiries, and most people ask for all details, before they want to talk. It will be nice to know. Ramdas On Fri, Jun 20, 2008 at 6:56 AM, Anand Chitipothu wrote: > > > > Note: Would be happy to get in touch with fellow trainer / consultant in > > this group. > > > > Hi Sree, > > I offer training in Python. > > http://pythonprogramming.jottit.com > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 My Personal Blog: http://ramdas.diqtech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pratap.iiit at gmail.com Sat Jun 21 00:41:00 2008 From: pratap.iiit at gmail.com (Pratap) Date: Sat, 21 Jun 2008 04:11:00 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: Message-ID: have you tried active state python editor i think that one is good for linux too On Tue, Jun 17, 2008 at 1:28 AM, Nirakar Sethy wrote: > > hi all. > i'm new to python. On windows we do have a GUI (like a notepad) In which we > can script. How to get that on Linux (Fedora 8) > > Thanks > Nirakar Sethy > Digital Artist > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From munichlinux at gmail.com Sat Jun 21 07:49:19 2008 From: munichlinux at gmail.com (Prashanth) Date: Sat, 21 Jun 2008 11:19:19 +0530 Subject: [BangPypers] hi everybody In-Reply-To: References: Message-ID: <1f869bdd0806202249i243abed6u2aeb7a2cb7340d4@mail.gmail.com> Hi On Sat, Jun 21, 2008 at 4:11 AM, Pratap wrote: > have you tried active state python editor i think that one is good for linux > too > use the universal one GNU emacs. :) -- regards, Prashanth http://munichlinux.blogspot.com From madhav.bnk at gmail.com Fri Jun 27 08:51:36 2008 From: madhav.bnk at gmail.com (B.Nanda Kishore) Date: Fri, 27 Jun 2008 12:21:36 +0530 Subject: [BangPypers] Email Bounce Detection Message-ID: <26030bef0806262351o280b1c3ex87b17c608ee0a018@mail.gmail.com> Hello everybody, I need a mechanism to detect email bounces. I tried browsing through smtplib implementation and found not helpful in this case. Actually it is said in the documentation that if a mail is sent to say: " somerandomname at randomorg.com", then "*_send()*" in the SMTPConnection class returns 550(Unknown recceipient). I checked the same but its not returning 550 and return 250(receipient ok). Later, I tried getting the smtp error code from the mail body of a bounced msg. the "*Message*" class doesnot have any error code attribute by default. We need to get it from the mailbody(by *regex* ing), which i think is not a valid solution, as "*550*" can occur anywhere in the body of any message otherthan the bounced msg also. Please help me regarding this. Thanks in advance. -- Regards Nanda, Orglex Inc Email: nandakishore at orglex.com "Without Breakdowns, there won't be Breakthroughs." -------------- next part -------------- An HTML attachment was scrubbed... URL: