From ssquery at gmail.com Fri Nov 6 02:43:45 2009 From: ssquery at gmail.com (sudhakar s) Date: Fri, 6 Nov 2009 07:13:45 +0530 Subject: [BangPypers] WSDL Message-ID: <1528d2590911051743q5873c814j75286fb866b362c0@mail.gmail.com> Can any one suggest me how to write WSDL from python, or is there any way to generate a WSDL from Python. -- With Regards, S Sudhakar. From ak.m.mail at gmail.com Fri Nov 6 04:17:42 2009 From: ak.m.mail at gmail.com (akm) Date: Fri, 6 Nov 2009 08:47:42 +0530 Subject: [BangPypers] WSDL In-Reply-To: <1528d2590911051743q5873c814j75286fb866b362c0@mail.gmail.com> References: <1528d2590911051743q5873c814j75286fb866b362c0@mail.gmail.com> Message-ID: <9f7242b30911051917n5669af7dv51798ec3cf609c44@mail.gmail.com> On Fri, Nov 6, 2009 at 7:13 AM, sudhakar s wrote: > Can any one suggest me how to write WSDL from python, > or is there any way to generate a WSDL from Python. ZSI (http://pywebsvcs.sourceforge.net/zsi.html) comes with a script 'wsdl2py' and this can be used for automatically generating client service stub from a wsdl definition. -- Abdul Kader M From jinsthomas at gmail.com Fri Nov 6 14:15:35 2009 From: jinsthomas at gmail.com (Jins Thomas) Date: Fri, 6 Nov 2009 18:45:35 +0530 Subject: [BangPypers] Help python to implement binary parser Message-ID: Hi all, Thanks alot for all the previous helps i have got from this group. I'm currently planning to implement a binary parser which can convert binary or ASN1 files to text format. This i need in a teleco background where almost all the network elements provide binary/asn1 data format of call events. Would somebody tell whether python is a good option for this kind of parsers compared to other languages. I felt like it's easier to implement in python, but not so sure about the performance aspects compared to C/C++/Java/Perl. I also saw one parser module at http://www.acooke.org/lepl/ Would somebody please comment on this. Thanks Jins Thomas From noufal at gmail.com Fri Nov 6 15:28:15 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 6 Nov 2009 19:58:15 +0530 Subject: [BangPypers] Help python to implement binary parser In-Reply-To: References: Message-ID: <9963e56e0911060628h570e626j6e42d94776944e2a@mail.gmail.com> On Fri, Nov 6, 2009 at 6:45 PM, Jins Thomas wrote: > Hi all, > > Thanks alot for all the previous helps i have got from this group. > > I'm currently planning to implement a binary parser which can convert binary > or ASN1 files to text format. This i need ?in a teleco background where > almost all the network elements provide binary/asn1 data format of call > events. How complicated is the format? > Would somebody tell whether python is a good option for this kind of parsers > compared to other languages. I felt like it's easier to implement in python, > but not so sure about the performance aspects compared to C/C++/Java/Perl. > I also saw one parser module at ? http://www.acooke.org/lepl/ Wouldn't this kind of thing be unpacking some kind of binary object into a python data structure? I don't think it'd be as fast as C but it might be close enough for you to work. Shouldn't take long to prototype it though. Also check out http://pyasn1.sourceforge.net/ -- ~noufal http://nibrahim.net.in From ambadas004 at gmail.com Mon Nov 9 07:33:45 2009 From: ambadas004 at gmail.com (ambadas hunushnale) Date: Sun, 8 Nov 2009 22:33:45 -0800 Subject: [BangPypers] Hello: Message-ID: hi, can any body help me... i want to build code checker for c++ program using python langusge..... From amit.pureenergy at gmail.com Mon Nov 9 07:37:35 2009 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Mon, 9 Nov 2009 12:07:35 +0530 Subject: [BangPypers] Hello: In-Reply-To: References: Message-ID: I don't exactly understand what you mean by code checker? but if you require some thing that can do context free grammar conversion you can use nltk. -- A-M-I-T S|S From noufal at gmail.com Mon Nov 9 07:48:06 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 9 Nov 2009 12:18:06 +0530 Subject: [BangPypers] Hello: In-Reply-To: References: Message-ID: <9963e56e0911082248k5e6d4c2bw414a703f35162ae4@mail.gmail.com> On Mon, Nov 9, 2009 at 12:03 PM, ambadas hunushnale wrote: > hi, > ?can any body help me... > ?i want to build code checker for c++ program using python langusge..... Can you elaborate a little on what you mean by "code checker"? -- ~noufal http://nibrahim.net.in From ambadas004 at gmail.com Mon Nov 9 07:58:06 2009 From: ambadas004 at gmail.com (Ambadas) Date: Sun, 8 Nov 2009 22:58:06 -0800 Subject: [BangPypers] Hello: In-Reply-To: <9963e56e0911082248k5e6d4c2bw414a703f35162ae4@mail.gmail.com> References: <9963e56e0911082248k5e6d4c2bw414a703f35162ae4@mail.gmail.com> Message-ID: hello sir, actually i want to build a program that can check syntax,no of function and generate report for c++ complied programe On Sun, Nov 8, 2009 at 10:48 PM, Noufal Ibrahim wrote: > On Mon, Nov 9, 2009 at 12:03 PM, ambadas hunushnale > wrote: > > hi, > > can any body help me... > > i want to build code checker for c++ program using python langusge..... > > Can you elaborate a little on what you mean by "code checker"? > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ambadas004 at gmail.com Mon Nov 9 07:59:09 2009 From: ambadas004 at gmail.com (Ambadas) Date: Sun, 8 Nov 2009 22:59:09 -0800 Subject: [BangPypers] Hello: In-Reply-To: References: Message-ID: hello, i want to build a programe that can check function ,syntax of c++ complied program and generate report On Sun, Nov 8, 2009 at 10:37 PM, Amit Sethi wrote: > I don't exactly understand what you mean by code checker? but if you > require > some thing that can do context free grammar conversion you can use nltk. > > > -- > A-M-I-T S|S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ranganaths at gmail.com Mon Nov 9 08:01:57 2009 From: ranganaths at gmail.com (Ranganath s) Date: Mon, 9 Nov 2009 12:31:57 +0530 Subject: [BangPypers] Hello: In-Reply-To: References: <9963e56e0911082248k5e6d4c2bw414a703f35162ae4@mail.gmail.com> Message-ID: <77bb36840911082301l59614edpc1f921a550052766@mail.gmail.com> You can use ANTLR (a python target) .. http://antlr.org/ should be the right place for you start.. Ranganath On Mon, Nov 9, 2009 at 12:28 PM, Ambadas wrote: > hello sir, > > actually i want to build a program that can check syntax,no of function > and > generate report for c++ complied programe > > On Sun, Nov 8, 2009 at 10:48 PM, Noufal Ibrahim wrote: > > > On Mon, Nov 9, 2009 at 12:03 PM, ambadas hunushnale > > wrote: > > > hi, > > > can any body help me... > > > i want to build code checker for c++ program using python > langusge..... > > > > Can you elaborate a little on what you mean by "code checker"? > > > > > > -- > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > 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 > -- I blog at http://ranganaths.wordpress.com From ambadas004 at gmail.com Mon Nov 9 08:05:32 2009 From: ambadas004 at gmail.com (Ambadas) Date: Sun, 8 Nov 2009 23:05:32 -0800 Subject: [BangPypers] Hello: In-Reply-To: <77bb36840911082301l59614edpc1f921a550052766@mail.gmail.com> References: <9963e56e0911082248k5e6d4c2bw414a703f35162ae4@mail.gmail.com> <77bb36840911082301l59614edpc1f921a550052766@mail.gmail.com> Message-ID: thank's for ur supporting... On Sun, Nov 8, 2009 at 11:01 PM, Ranganath s wrote: > You can use ANTLR (a python target) .. http://antlr.org/ should be the > right > place for you start.. > > Ranganath > > On Mon, Nov 9, 2009 at 12:28 PM, Ambadas wrote: > > > hello sir, > > > > actually i want to build a program that can check syntax,no of function > > and > > generate report for c++ complied programe > > > > On Sun, Nov 8, 2009 at 10:48 PM, Noufal Ibrahim > wrote: > > > > > On Mon, Nov 9, 2009 at 12:03 PM, ambadas hunushnale > > > wrote: > > > > hi, > > > > can any body help me... > > > > i want to build code checker for c++ program using python > > langusge..... > > > > > > Can you elaborate a little on what you mean by "code checker"? > > > > > > > > > -- > > > ~noufal > > > http://nibrahim.net.in > > > _______________________________________________ > > > 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 > > > > > > -- > I blog at http://ranganaths.wordpress.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From pythonic at gmail.com Mon Nov 9 09:03:53 2009 From: pythonic at gmail.com (Shekhar) Date: Mon, 09 Nov 2009 13:33:53 +0530 Subject: [BangPypers] Noufal Message-ID: <4AF7CCE9.1080109@gmail.com> By now many people must be aware but I spotted this today. http://pyfound.blogspot.com/2009/10/third-quarter-community-service-awards.html Congratulations Noufal and thanks for your work so far. Shekhar From ramdaz at gmail.com Tue Nov 10 12:19:05 2009 From: ramdaz at gmail.com (Ramdas S) Date: Tue, 10 Nov 2009 16:49:05 +0530 Subject: [BangPypers] 3rd saturday 21st Message-ID: <6e38f9f00911100319i7d207962uc9b3ef0e851406da@mail.gmail.com> What's the plan? Speakers/presenters please standup -- Ramdas S +91 9342 583 065 From noufal at gmail.com Tue Nov 10 12:26:33 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 10 Nov 2009 16:56:33 +0530 Subject: [BangPypers] 3rd saturday 21st In-Reply-To: <6e38f9f00911100319i7d207962uc9b3ef0e851406da@mail.gmail.com> References: <6e38f9f00911100319i7d207962uc9b3ef0e851406da@mail.gmail.com> Message-ID: <9963e56e0911100326g60474264i902f9bddb7df0f33@mail.gmail.com> On Tue, Nov 10, 2009 at 4:49 PM, Ramdas S wrote: > What's the plan? Speakers/presenters please standup Is it possible to get the LLVM talk then? That would be nice. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Tue Nov 10 12:41:39 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 10 Nov 2009 17:11:39 +0530 Subject: [BangPypers] 3rd saturday 21st In-Reply-To: <9963e56e0911100326g60474264i902f9bddb7df0f33@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01C37CE5@astserver3.akebonosoft.com> Is it possible for you people to share the slides or pdf's of talks you have?? Atleast if you upload them on slideshare or scribd that would be very much helpful to people like me who live in Hyderabad.!! ----- you never learn something until you have to write something in it, until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.o rg] On Behalf Of Noufal Ibrahim Sent: Tuesday, November 10, 2009 4:57 PM To: ramdaz at gmail.com; Bangalore Python Users Group - India Subject: Re: [BangPypers] 3rd saturday 21st On Tue, Nov 10, 2009 at 4:49 PM, Ramdas S wrote: > What's the plan? Speakers/presenters please standup Is it possible to get the LLVM talk then? That would be nice. -- ~noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From kadambari.devarajan at gmail.com Tue Nov 10 18:37:53 2009 From: kadambari.devarajan at gmail.com (Kadambari Devarajan) Date: Tue, 10 Nov 2009 23:07:53 +0530 Subject: [BangPypers] [ANN][X-Post] SciPy India 2009 - Call for Papers Message-ID: Call for Presentations ====================== The SciPy India 2009 Program Committee is currently developing the conference program. We are seeking presentations from industry as well as the academic world. We look forward to hearing your recent breakthroughs using Python! Please read the full 'call for papers' . SciPy India 2009 Conference --------------------------- The first 'SciPy India Conference' will be held from December 12th to 17th, 2009 at the 'Technopark in Trivandrum', Kerala, India. The theme of the conference will be "Scientific Python in Action" with respect to application and teaching. We are pleased to have Travis Oliphant, the creator and lead developer of 'numpy' as the keynote speaker. Please register here . Important Dates --------------- * Friday, Nov. 20: Abstracts Due * Friday, Nov. 27: Announce accepted talks, post schedule * Saturday-Sunday, Dec. 12-13: Conference * Monday-Tuesday, Dec. 14-15: Tutorials * Wednesday-Thursday, Dec. 16-17: Sprints Organizers ---------- * Jarrod Millman, Neuroscience Institute, UC Berkeley, USA (Conference Co-Chair) * Prabhu Ramachandran, Department of Aerospace Engineering, IIT Bombay, India (Conference Co-Chair) * FOSSEE Team Sponsors -------- * National Mission On Education through ICT - Ministry of Human Resource Development, Government of India * SPACE-Kerala (India) * Kerala State IT Mission(KSITM) * SIG-FOSS Of CSIy -- Check out my blog at http://kadambarid.livejournal.com From rmathews at gmail.com Wed Nov 11 04:13:08 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 08:43:08 +0530 Subject: [BangPypers] [OT][x-POST] New programming language: Go Message-ID: <1c4dc2780911101913k5037c72dpb879e8949944499a@mail.gmail.com> Just picked this off the news: http://google-opensource.blogspot.com/2009/11/hey-ho-lets-go.html There's a youtube techtalk vid too. Opinions? -- Roshan Mathews http://teamtalk.im From artagnon at gmail.com Wed Nov 11 04:30:28 2009 From: artagnon at gmail.com (Ramkumar Ramachandra) Date: Wed, 11 Nov 2009 09:00:28 +0530 Subject: [BangPypers] About llvm and llvm-py In-Reply-To: <9963e56e0910270027w1b25f44fm7406a1f8fd3c37a3@mail.gmail.com> References: <49977f270910262349n1459d405lb738d7e076f53b86@mail.gmail.com> <9963e56e0910270027w1b25f44fm7406a1f8fd3c37a3@mail.gmail.com> Message-ID: > This is awesome. I'm extremely eager to get my fingers dirty with LLVM > since I think the unladen swallow project is one of the most promising > optimisation attempts for Python. You might be interested in the first talk here | http://artagnon.com/2009/11/my-foss-in2009-talk-abstracts/ From noufal at gmail.com Wed Nov 11 07:04:23 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 11 Nov 2009 11:34:23 +0530 Subject: [BangPypers] About llvm and llvm-py In-Reply-To: References: <49977f270910262349n1459d405lb738d7e076f53b86@mail.gmail.com> <9963e56e0910270027w1b25f44fm7406a1f8fd3c37a3@mail.gmail.com> Message-ID: <9963e56e0911102204r74cbcbb2y8b6dedcbaa535a55@mail.gmail.com> On Wed, Nov 11, 2009 at 9:00 AM, Ramkumar Ramachandra wrote: >> This is awesome. I'm extremely eager to get my fingers dirty with LLVM >> since I think the unladen swallow project is one of the most promising >> optimisation attempts for Python. > > You might be interested in the first talk here | > http://artagnon.com/2009/11/my-foss-in2009-talk-abstracts/ Indeed. Thanks. -- ~noufal http://nibrahim.net.in From mdevan.foobar at gmail.com Wed Nov 11 07:11:03 2009 From: mdevan.foobar at gmail.com (Mahadevan R) Date: Wed, 11 Nov 2009 11:41:03 +0530 Subject: [BangPypers] Hi. Message-ID: Hi guys, I'm Mahadevan. Sriram had invited me to give a talk about LLVM and llvm-py (I'm the author of the latter). I was planning to be ready by this weekend, but things have been to busy this week. I saw the other thread with a date of Nov 21st, but I've other engagements on that day. Nov 22nd (Sunday) or the weekend after that (28,29) would be OK with me. Please let me know. Also I wanted to get an idea of what you'd like me to cover during the talk. Sriram suggested a 50-50 mix of LLVM and llvm-py. Here is a possible list of topics: * LLVM overview * IR, LLVM assembly, bitcode, optimization passes * Subprojects: clang, llvm-gcc, vmkit, mc, compiler-rt * Wrapping the LLVM API; creating llvm-py * llvm-py overview; examples Again, let me know your suggestions. Regards, -MD. PS: I'm usually called just "MD", hence the signature :-) From noufal at gmail.com Wed Nov 11 07:33:34 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 11 Nov 2009 12:03:34 +0530 Subject: [BangPypers] Hi. In-Reply-To: References: Message-ID: <9963e56e0911102233r3622fc04n403b981bc42b3e52@mail.gmail.com> On Wed, Nov 11, 2009 at 11:41 AM, Mahadevan R wrote: > Hi guys, > > I'm Mahadevan. Sriram had invited me to give a talk about LLVM and > llvm-py (I'm the author of the latter). > > I was planning to be ready by this weekend, but things have been to > busy this week. I saw the other thread with a date of Nov 21st, but > I've other engagements on that day. Nov 22nd (Sunday) or the weekend > after that (28,29) would be OK with me. Please let me know. +1 for 22nd. -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Wed Nov 11 07:42:00 2009 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Wed, 11 Nov 2009 12:12:00 +0530 Subject: [BangPypers] Hi. In-Reply-To: <9963e56e0911102233r3622fc04n403b981bc42b3e52@mail.gmail.com> References: <9963e56e0911102233r3622fc04n403b981bc42b3e52@mail.gmail.com> Message-ID: <3d62196a0911102242i2e50a685t4f95faaae9aee269@mail.gmail.com> yeh +1 for 22nd from me too. On Wed, Nov 11, 2009 at 12:03 PM, Noufal Ibrahim wrote: > On Wed, Nov 11, 2009 at 11:41 AM, Mahadevan R > wrote: > > Hi guys, > > > > I'm Mahadevan. Sriram had invited me to give a talk about LLVM and > > llvm-py (I'm the author of the latter). > > > > I was planning to be ready by this weekend, but things have been to > > busy this week. I saw the other thread with a date of Nov 21st, but > > I've other engagements on that day. Nov 22nd (Sunday) or the weekend > > after that (28,29) would be OK with me. Please let me know. > > +1 for 22nd. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sriramnrn at gmail.com Wed Nov 11 07:43:15 2009 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Wed, 11 Nov 2009 12:13:15 +0530 Subject: [BangPypers] Hi. In-Reply-To: <9963e56e0911102233r3622fc04n403b981bc42b3e52@mail.gmail.com> References: <9963e56e0911102233r3622fc04n403b981bc42b3e52@mail.gmail.com> Message-ID: <49977f270911102243w5afd1815t3fa42418348b761c@mail.gmail.com> On Wed, Nov 11, 2009 at 12:03 PM, Noufal Ibrahim wrote: > +1 for 22nd. > +1 -- Sriram From sriramnrn at gmail.com Wed Nov 11 08:05:03 2009 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Wed, 11 Nov 2009 12:35:03 +0530 Subject: [BangPypers] Google's Go - "Python meets C++" Message-ID: <49977f270911102305i1895c268x8315aeddc5477eab@mail.gmail.com> http://www.techcrunch.com/2009/11/10/google-go-language/ -- Sriram From varunthacker at aol.in Wed Nov 11 09:53:25 2009 From: varunthacker at aol.in (varunthacker at aol.in) Date: Wed, 11 Nov 2009 03:53:25 -0500 Subject: [BangPypers] Google Go In-Reply-To: References: Message-ID: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> I just heard about Google Go.My first reaction was of excitement.But when i read about it i'm clueless as to what is it aiming for? What do every feel about it? this is the link to the blog post announcing Go. http://google-opensource.blogspot.com/2009/11/hey-ho-lets-go.html Regards, Varun Thacker http://varunthacker.wordpress.com From rmathews at gmail.com Wed Nov 11 10:12:25 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 14:42:25 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> Message-ID: <1c4dc2780911110112y469e9eebwd27c3e523bd18c4c@mail.gmail.com> On Wed, Nov 11, 2009 at 2:23 PM, wrote: > I just heard about Google Go.My first reaction was of excitement.But when i > read about it i'm clueless as to what is it aiming for? > What do every feel about it? > Did you see the video [1] linked from that link? They say it's for systems programming. There are already two mails about Go on this list. [1] http://www.youtube.com/watch?v=wwoWei-GAPo -- Roshan Mathews http://teamtalk.im From abpillai at gmail.com Wed Nov 11 10:21:20 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 14:51:20 +0530 Subject: [BangPypers] Google Go In-Reply-To: <1c4dc2780911110112y469e9eebwd27c3e523bd18c4c@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <1c4dc2780911110112y469e9eebwd27c3e523bd18c4c@mail.gmail.com> Message-ID: <8548c5f30911110121k3acf8675rbd13821328e56cfb@mail.gmail.com> On Wed, Nov 11, 2009 at 2:42 PM, Roshan Mathews wrote: > On Wed, Nov 11, 2009 at 2:23 PM, wrote: > > I just heard about Google Go.My first reaction was of excitement.But when > i > > read about it i'm clueless as to what is it aiming for? > > What do every feel about it? > > > Did you see the video [1] linked from that link? They say it's for > systems programming. > " package main import "fmt" func main() { fmt.Printf("Hello, ??\n") } " I wonder if it is aimed at Chinese system programming... > > There are already two mails about Go on this list. > > [1] http://www.youtube.com/watch?v=wwoWei-GAPo > > > -- > Roshan Mathews > http://teamtalk.im > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From mdevan.foobar at gmail.com Wed Nov 11 10:37:09 2009 From: mdevan.foobar at gmail.com (Mahadevan R) Date: Wed, 11 Nov 2009 15:07:09 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> Message-ID: On Wed, Nov 11, 2009 at 2:23 PM, wrote: > I just heard about Google Go.My first reaction was of excitement.But when i > read about it i'm clueless as to what is it aiming for? > What do every feel about it? > > this is the link to the blog post announcing Go. > http://google-opensource.blogspot.com/2009/11/hey-ho-lets-go.html The last line of the post was the most impressive: "By Robert Griesemer, Rob Pike, Ken Thompson, Ian Taylor, Russ Cox, Jini Kim and Adam Langley - The Go Team" Wow! Regards, -MD. > > Regards, > Varun Thacker > http://varunthacker.wordpress.com > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ramdaz at gmail.com Wed Nov 11 10:45:49 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 11 Nov 2009 15:15:49 +0530 Subject: [BangPypers] Google Go In-Reply-To: References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> Message-ID: <6e38f9f00911110145y2ad1e6e0jeb827ee3f5aa6a06@mail.gmail.com> Its an exciting time to be a Python programmer. On Wed, Nov 11, 2009 at 3:07 PM, Mahadevan R wrote: > On Wed, Nov 11, 2009 at 2:23 PM, wrote: > > I just heard about Google Go.My first reaction was of excitement.But when > i > > read about it i'm clueless as to what is it aiming for? > > What do every feel about it? > > > > this is the link to the blog post announcing Go. > > http://google-opensource.blogspot.com/2009/11/hey-ho-lets-go.html > > The last line of the post was the most impressive: > > "By Robert Griesemer, Rob Pike, Ken Thompson, Ian Taylor, Russ Cox, > Jini Kim and Adam Langley - The Go Team" > > Wow! > > Regards, > -MD. > > > > > Regards, > > Varun Thacker > > http://varunthacker.wordpress.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 > -- Ramdas S +91 9342 583 065 From noufal at gmail.com Wed Nov 11 11:12:41 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 11 Nov 2009 15:42:41 +0530 Subject: [BangPypers] Google Go In-Reply-To: References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> Message-ID: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> On Wed, Nov 11, 2009 at 3:07 PM, Mahadevan R wrote: [..] > "By Robert Griesemer, Rob Pike, Ken Thompson, Ian Taylor, Russ Cox, > Jini Kim and Adam Langley - The Go Team" [..] That caught my eye too but another language? -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Wed Nov 11 11:29:02 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 15:59:02 +0530 Subject: [BangPypers] Google Go In-Reply-To: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> Message-ID: <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> On Wed, Nov 11, 2009 at 3:42 PM, Noufal Ibrahim wrote: > On Wed, Nov 11, 2009 at 3:07 PM, Mahadevan R > wrote: > [..] > > "By Robert Griesemer, Rob Pike, Ken Thompson, Ian Taylor, Russ Cox, > > Jini Kim and Adam Langley - The Go Team" > [..] > > That caught my eye too but another language? > But I don't see the Python connection at all here. "Go is mostly in the C family (basic syntax), with significant input from the Pascal/Modula/Oberon family (declarations, packages), plus some ideas from languages inspired by Tony Hoare's CSP, such as Newsqueak and Limbo (concurrency)" In the entire FAQ the word "Python" is just mentioned once. The Python line seems to be a marketing thing to me. Also this line is funny. "The company says that Go is experimental, and that it combines the performance and security benefits associated with using a compiled language like C++ with the speed of a dynamic language like Python" Heh, speed of Python and security of C++ ? I thought it should be the other way around! Who did the marketing for this...! > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From pasokan at gmail.com Wed Nov 11 11:32:06 2009 From: pasokan at gmail.com (Asokan Pichai) Date: Wed, 11 Nov 2009 16:02:06 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> Message-ID: <5de036dc0911110232n2f6d06c8sb0abcf9556235b4a@mail.gmail.com> [snip] > ?Also this line is funny. > > ?"The company says that Go is experimental, and that it combines the > performance and security benefits associated with using a compiled language > like C++ with the speed of a dynamic language like Python" > > ?Heh, speed of Python and security of C++ ? I thought it should be the other > way around! Who did the marketing for this...! > > One presumes they meant development speed. -- Asokan Pichai *-------------------* We will find a way. Or, make one. (Hannibal) From noufal at gmail.com Wed Nov 11 11:32:30 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 11 Nov 2009 16:02:30 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> Message-ID: <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> On Wed, Nov 11, 2009 at 3:59 PM, Anand Balachandran Pillai wrote: [..] > ?"The company says that Go is experimental, and that it combines the > performance and security benefits associated with using a compiled language > like C++ with the speed of a dynamic language like Python" Perhaps they meant speed of development and the security associated with strong static typing. -- ~noufal http://nibrahim.net.in From ramdaz at gmail.com Wed Nov 11 11:47:08 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 11 Nov 2009 16:17:08 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> Message-ID: <6e38f9f00911110247h1dce9183uc5d6ac1e23047255@mail.gmail.com> > > > But I don't see the Python connection at all here. > > Yeah! I jumped the line without reading. Actually going through now and downloading the stuff I cant see much from Python perspective, that bloody language is full of braces, but yes syntactically its more sugary and clean I guess it might be a lesser learning curve for someone from Python background, learning Go than C++. -- Ramdas S +91 9342 583 065 From steve at lonetwin.net Wed Nov 11 12:18:54 2009 From: steve at lonetwin.net (steve) Date: Wed, 11 Nov 2009 16:48:54 +0530 Subject: [BangPypers] Google Go In-Reply-To: <6e38f9f00911110247h1dce9183uc5d6ac1e23047255@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <6e38f9f00911110247h1dce9183uc5d6ac1e23047255@mail.gmail.com> Message-ID: <4AFA9D9E.7030509@lonetwin.net> On 11/11/2009 04:17 PM, Ramdas S wrote: >> >> >> But I don't see the Python connection at all here. >> >> > Yeah! I jumped the line without reading. Actually going through now and > downloading the stuff I cant see much from Python perspective, that bloody > language is full of braces, but yes syntactically its more sugary and clean > seriously ?? no, really, are you serious ? you got more sugary from Titlecase.Method.Names ? (Printf now requires a damn shift key !! what was ken thompson thinking ??). That was my first reaction. Well, other than that, I think it is pretty nice language ...but doesn't really /stand out/ for anything in particular (like python's simplicity and beauty did, when I first made its acquaintance). Then again I am not a polyglot as far as programming is concerned ...so I might not be able to appreciate it's value ...yet ... cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From abpillai at gmail.com Wed Nov 11 12:52:24 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 17:22:24 +0530 Subject: [BangPypers] Google Go In-Reply-To: <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> Message-ID: <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> On Wed, Nov 11, 2009 at 4:02 PM, Noufal Ibrahim wrote: > On Wed, Nov 11, 2009 at 3:59 PM, Anand Balachandran Pillai > wrote: > [..] > > "The company says that Go is experimental, and that it combines the > > performance and security benefits associated with using a compiled > language > > like C++ with the speed of a dynamic language like Python" > > Perhaps they meant speed of development and the security associated > with strong static typing. > Upon 2nd reading, I also thought they did, but not a very good disambiguation there I daresay. But "security benefits associated to a compiled language" - I fall flat there since I don't see any correlation with a language being compiled and its security! Pretty shoddy marketing this... > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From ramdaz at gmail.com Wed Nov 11 13:00:05 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 11 Nov 2009 17:30:05 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> Message-ID: <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Wed, Nov 11, 2009 at 4:02 PM, Noufal Ibrahim wrote: > > > On Wed, Nov 11, 2009 at 3:59 PM, Anand Balachandran Pillai > > wrote: > > [..] > > > "The company says that Go is experimental, and that it combines the > > > performance and security benefits associated with using a compiled > > language > > > like C++ with the speed of a dynamic language like Python" > > > > Perhaps they meant speed of development and the security associated > > with strong static typing. > > > > Upon 2nd reading, I also thought they did, but not a very good > disambiguation there I daresay. But "security benefits associated to > a compiled language" - I fall flat there since I don't see any > correlation with a language being compiled and its security! > > Pretty shoddy marketing this... > That's what the big boys of the world wants you to believe. I had met a very senior official in the government a techy himself and spent 3 hours showing him virtues of Python and Django, hoping that they will change the RFP terms. I found out yesterday that the application has to be developed on a proven technology like Java,C++ or C#. When I spoke to the gentleman he said his consultant said that dynamically typed languages are not safe for mission critical work. The work is far from being mission-critical is another point altogether..... > > > > > > -- > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > 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 > -- Ramdas S +91 9342 583 065 From abpillai at gmail.com Wed Nov 11 13:18:18 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 17:48:18 +0530 Subject: [BangPypers] Google Go In-Reply-To: <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> Message-ID: <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> On Wed, Nov 11, 2009 at 5:30 PM, Ramdas S wrote: > On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > > > On Wed, Nov 11, 2009 at 4:02 PM, Noufal Ibrahim > wrote: > > > > > On Wed, Nov 11, 2009 at 3:59 PM, Anand Balachandran Pillai > > > wrote: > > > [..] > > > > "The company says that Go is experimental, and that it combines the > > > > performance and security benefits associated with using a compiled > > > language > > > > like C++ with the speed of a dynamic language like Python" > > > > > > Perhaps they meant speed of development and the security associated > > > with strong static typing. > > > > > > > Upon 2nd reading, I also thought they did, but not a very good > > disambiguation there I daresay. But "security benefits associated to > > a compiled language" - I fall flat there since I don't see any > > correlation with a language being compiled and its security! > > > > Pretty shoddy marketing this... > > > > > That's what the big boys of the world wants you to believe. I had met a > very > senior official in the government a techy himself and spent 3 hours showing > him virtues of Python and Django, hoping that they will change the RFP > terms. > > I found out yesterday that the application has to be developed on a proven > technology like Java,C++ or C#. When I spoke to the gentleman he said his > consultant said that dynamically typed languages are not safe for mission > critical work. The work is far from being mission-critical is another point > altogether..... > The point is that so called compiled languages provide more security loop-holes than interpreted ones. C++/C for example provide liberal scope for buffer overflow exploits due to use of pointers and manual memory management. Accessing any buffer outside the scope of your data structures is always a potential window for the malicious hacker for buffer overflow exploits. And C/C++ are notorious for making this easy providing you with different ways of shooting yourself in the foot... > > > > > > > > > > > -- > > > ~noufal > > > http://nibrahim.net.in > > > _______________________________________________ > > > 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 > > > > > > -- > Ramdas S > +91 9342 583 065 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lorddaemon at gmail.com Wed Nov 11 13:25:16 2009 From: lorddaemon at gmail.com (Darkseid) Date: Wed, 11 Nov 2009 17:55:16 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> Message-ID: <4AFAAD2C.1070302@gmail.com> > Go combines the development speed of working in a dynamic language > like Python with the performance and safety of a compiled language > like C or C++. It could just be the cynic in me, but this looks a lot like the marketing MS did to sell VB.Net to VB devs. Vague phrases that aren't precisely inaccurate, but aren't very clear, targeted at a very specific audience that (presumably) aren't experts in other areas. I understand it's fun to create and play with languages, so good stuff, but the goals of this language seem a little vague. I like the fact that Go has reflection (but I haven't looked into how comprehensive that is) but every other design goal they've talked about seems to be already met by Objective-C (systems programming, fast, statically typed, closures, elegant OO, gc etc. + message passing which Go doesn't mention). Plus I'm always vaguely annoyed every time I run into the assertion that static typing in some way increases the 'safety' of the code. Best, Sidu. http://blog.sidu.in http://twitter.com/ponnappa From ramdaz at gmail.com Wed Nov 11 13:34:28 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 11 Nov 2009 18:04:28 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> Message-ID: <6e38f9f00911110434q583fe2a3lbf4f873b817e5b93@mail.gmail.com> > The point is that so called compiled languages provide more security > loop-holes than interpreted ones. C++/C for example provide liberal > scope for buffer overflow exploits due to use of pointers and manual > memory management. > > Accessing any buffer outside the scope of your data structures is always > a potential window for the malicious hacker for buffer overflow exploits. > And C/C++ are notorious for making this easy providing you with > different ways of shooting yourself in the foot... > Agreed, but outside our group how many people believe that > >> >> >> > > >> > > >> > > -- >> > > ~noufal >> > > http://nibrahim.net.in >> > > _______________________________________________ >> > > 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 >> > >> >> >> >> -- >> Ramdas S >> +91 9342 583 065 >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > > > > -- Ramdas S +91 9342 583 065 From rmathews at gmail.com Wed Nov 11 13:36:33 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 18:06:33 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> Message-ID: <1c4dc2780911110436n3145f335h476a3074b676e149@mail.gmail.com> On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai wrote: > ?Upon 2nd reading, I also thought they did, but not a very good > ?disambiguation there I daresay. But "security benefits associated to > ?a compiled language" - ?I fall flat there since I don't see any > ?correlation with a language being compiled and its security! > > ?Pretty shoddy marketing this... > The Go people said this? Where are you quoting from? -- Roshan Mathews http://teamtalk.im From lorddaemon at gmail.com Wed Nov 11 13:37:18 2009 From: lorddaemon at gmail.com (Darkseid) Date: Wed, 11 Nov 2009 18:07:18 +0530 Subject: [BangPypers] Google Go In-Reply-To: <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> Message-ID: <4AFAAFFE.6000507@gmail.com> > > I found out yesterday that the application has to be developed on a proven > technology like Java,C++ or C#. When I spoke to the gentleman he said his > consultant said that dynamically typed languages are not safe for mission > critical work. The work is far from being mission-critical is another point > altogether..... I do hope you snidely pointed out to him that half of Google runs on Python? :D Best, Sidu. http://blog.sidu.in http://twitter.com/ponnappa From rmathews at gmail.com Wed Nov 11 13:39:03 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 18:09:03 +0530 Subject: [BangPypers] Google Go In-Reply-To: <4AFAAFFE.6000507@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <4AFAAFFE.6000507@gmail.com> Message-ID: <1c4dc2780911110439w5ca60694p1e0c41826b87d881@mail.gmail.com> On Wed, Nov 11, 2009 at 6:07 PM, Darkseid wrote: > I do hope you snidely pointed out to him that half of Google runs on Python? > :D > Which half? :) http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e -- Roshan Mathews http://teamtalk.im From rmathews at gmail.com Wed Nov 11 13:44:32 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 18:14:32 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> Message-ID: <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> On Wed, Nov 11, 2009 at 5:48 PM, Anand Balachandran Pillai wrote: > ?The point is that so called compiled languages provide more security > ?loop-holes than interpreted ones. C++/C for example provide liberal > ?scope for buffer overflow exploits due to use of pointers and manual > ?memory management. > > ?Accessing any buffer outside the scope of your data structures is always > ?a potential window for the malicious hacker for buffer overflow exploits. > ?And C/C++ are notorious for making this easy providing you with > ?different ways of shooting yourself in the foot... > That would be because C/C++ are weakly typed, not because they are compiled. Java is compiled right, does it have buffer overruns? I would assume that people are arguing for strong typing for efficiency. A language with run time dynamic dispatch, like say Python, will always be slower than something which is statically typed. The "looks like Python, runs like C++" is more than just marketing speak. I don't know anything about Go, beyond that what I saw in the Youtube video. But that's the exact same "ideal characteristic" that other language designers are aiming for, from the few that I know. From pradeep at btbytes.com Wed Nov 11 13:52:58 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 11 Nov 2009 07:52:58 -0500 Subject: [BangPypers] Google Go In-Reply-To: <4AFA9D9E.7030509@lonetwin.net> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <6e38f9f00911110247h1dce9183uc5d6ac1e23047255@mail.gmail.com> <4AFA9D9E.7030509@lonetwin.net> Message-ID: <3e3294b70911110452m15ab0457r8e72478c0da233e0@mail.gmail.com> On Wed, Nov 11, 2009 at 6:18 AM, steve wrote: > On 11/11/2009 04:17 PM, Ramdas S wrote: >>> >>> >>> ?But I don't see the Python connection at all here. >>> >>> >> Yeah! I jumped the line without reading. Actually going through now and >> downloading the stuff I cant see much ?from Python perspective, that >> bloody >> language is full of braces, but yes syntactically its more sugary and >> clean >> > seriously ?? no, really, are you serious ? you got more sugary from > Titlecase.Method.Names ? (Printf now requires a damn shift key !! what was > ken thompson thinking ??). Case defines scope. Capitalised variables/methods (eg:Telephone) are public. ones starting in lower case (eg:telephone) are private. +PG From abpillai at gmail.com Wed Nov 11 13:55:34 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 18:25:34 +0530 Subject: [BangPypers] Google Go In-Reply-To: <1c4dc2780911110436n3145f335h476a3074b676e149@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <1c4dc2780911110436n3145f335h476a3074b676e149@mail.gmail.com> Message-ID: <8548c5f30911110455v4c53095bu4aa7f3125af5f587@mail.gmail.com> On Wed, Nov 11, 2009 at 6:06 PM, Roshan Mathews wrote: > On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai > wrote: > > Upon 2nd reading, I also thought they did, but not a very good > > disambiguation there I daresay. But "security benefits associated to > > a compiled language" - I fall flat there since I don't see any > > correlation with a language being compiled and its security! > > > > Pretty shoddy marketing this... > > > The Go people said this? Where are you quoting from? > > Not sure if go people said this. But it is in the techcrunch link posted by Sriram, in another thread, 1st paragraph. http://www.techcrunch.com/2009/11/10/google-go-language/ I didn't make it up :-) > -- > Roshan Mathews > http://teamtalk.im > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From pradeep at btbytes.com Wed Nov 11 13:58:55 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 11 Nov 2009 07:58:55 -0500 Subject: [BangPypers] Google Go In-Reply-To: <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> Message-ID: <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> > That's what the big boys of the world wants you to believe. I had met a very > senior official in the government a techy himself and spent 3 hours showing > him virtues of Python and Django, hoping that they will change the RFP > terms. > > I found out yesterday that the application has to be developed ?on a proven > technology like Java,C++ or C#. When I spoke to the gentleman he said his > consultant said that dynamically typed languages are not safe for mission > critical work. The work is far from being mission-critical is another point > altogether..... That's because "big boys" define the market suitable to themselves. 1. it's easier to code more, take more time when using "proven technology" 2. It's easy to hire an IDE-aware monkey to do programming in "proven technology". Anyway, one answer to "proven technology" bugaboo is Jython and IronPython. It's still Java(platform) and .NET with bi-directional compatibility. +PG From ramdaz at gmail.com Wed Nov 11 13:58:56 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 11 Nov 2009 18:28:56 +0530 Subject: [BangPypers] Google Go In-Reply-To: <4AFAAFFE.6000507@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <4AFAAFFE.6000507@gmail.com> Message-ID: <6e38f9f00911110458h7b087da7ta4bb55c78267965b@mail.gmail.com> On Wed, Nov 11, 2009 at 6:07 PM, Darkseid wrote: > >> I found out yesterday that the application has to be developed on a >> proven >> technology like Java,C++ or C#. When I spoke to the gentleman he said his >> consultant said that dynamically typed languages are not safe for mission >> critical work. The work is far from being mission-critical is another >> point >> altogether..... >> > I do hope you snidely pointed out to him that half of Google runs on > Python? :D > That's been the original pitch since some time. These days there are creative lies also around some other companies which may have couple of teams working on Python, and I sometimes paint a picture that half the world runs on Python. Problem is actually consultants are somehow trusted more, than a peddler of services from a small IT shop. And since consultants also bill as a percent of the project costs, they want to ensure that stuff that'll take more hours to write, more hours to maintain, and almost always ends up in extended budget costs get sold... Well that's sad state of affairs.... > Best, > Sidu. > http://blog.sidu.in > http://twitter.com/ponnappa > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From abpillai at gmail.com Wed Nov 11 14:00:19 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 18:30:19 +0530 Subject: [BangPypers] Google Go In-Reply-To: <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> Message-ID: <8548c5f30911110500j44ad253ara0abb12f834f0fc4@mail.gmail.com> On Wed, Nov 11, 2009 at 6:14 PM, Roshan Mathews wrote: > On Wed, Nov 11, 2009 at 5:48 PM, Anand Balachandran Pillai > wrote: > > The point is that so called compiled languages provide more security > > loop-holes than interpreted ones. C++/C for example provide liberal > > scope for buffer overflow exploits due to use of pointers and manual > > memory management. > > > > Accessing any buffer outside the scope of your data structures is always > > a potential window for the malicious hacker for buffer overflow > exploits. > > And C/C++ are notorious for making this easy providing you with > > different ways of shooting yourself in the foot... > > > That would be because C/C++ are weakly typed, not because they are > compiled. Java is compiled right, does it have buffer overruns? > > I would assume that people are arguing for strong typing for > efficiency. A language with run time dynamic dispatch, like say > Python, will always be slower than something which is statically > typed. > > The "looks like Python, runs like C++" is more than just marketing > speak. I don't know anything about Go, beyond that what I saw in the > Youtube video. But that's the exact same "ideal characteristic" that > other language designers are aiming for, from the few that I know. > If you haven't noticed, "Looks like Python, runs like C++" has a lot of marketing potential, since Python has a reputation to be the cleanest of languages w.r.t syntax and readability and C++, that of power and speed. So if you say this is not marketing speak, I am not buying it... If you are designing a language which you claim is ultimate in this decade, that is exactly the punch line you want... > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From ideamonk at gmail.com Wed Nov 11 14:10:09 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Wed, 11 Nov 2009 18:40:09 +0530 Subject: [BangPypers] Hello: In-Reply-To: References: <9963e56e0911082248k5e6d4c2bw414a703f35162ae4@mail.gmail.com> <77bb36840911082301l59614edpc1f921a550052766@mail.gmail.com> Message-ID: <64160c70911110510g66d723a8i85cbfaad35507bc1@mail.gmail.com> You can also get hints from reports generated by pylint for checking c++ code quality. From pradeep at btbytes.com Wed Nov 11 14:14:47 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 11 Nov 2009 08:14:47 -0500 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110455v4c53095bu4aa7f3125af5f587@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <1c4dc2780911110436n3145f335h476a3074b676e149@mail.gmail.com> <8548c5f30911110455v4c53095bu4aa7f3125af5f587@mail.gmail.com> Message-ID: <3e3294b70911110514o550c836bnb1b031cad1558f0c@mail.gmail.com> On Wed, Nov 11, 2009 at 7:55 AM, Anand Balachandran Pillai wrote: > On Wed, Nov 11, 2009 at 6:06 PM, Roshan Mathews wrote: > >> On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai >> wrote: >> > ?Upon 2nd reading, I also thought they did, but not a very good >> > ?disambiguation there I daresay. But "security benefits associated to >> > ?a compiled language" - ?I fall flat there since I don't see any >> > ?correlation with a language being compiled and its security! >> > >> > ?Pretty shoddy marketing this... >> > >> The Go people said this? ?Where are you quoting from? >> >> > ?Not sure if go people said this. But it is in the techcrunch link > ?posted by Sriram, in another thread, 1st paragraph. > > ?http://www.techcrunch.com/2009/11/10/google-go-language/ > > ?I didn't make it up :-) Straight from the horse's mouth: http://golang.org/doc/go_lang_faq.html#creating_a_new_language From dhananjay.nene at gmail.com Wed Nov 11 14:16:07 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Wed, 11 Nov 2009 18:46:07 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> Message-ID: On Wed, Nov 11, 2009 at 2:23 PM, wrote: > I just heard about Google Go.My first reaction was of excitement.But when i > read about it i'm clueless as to what is it aiming for? > What do every feel about it? > > this is the link to the blog post announcing Go. > http://google-opensource.blogspot.com/2009/11/hey-ho-lets-go.html > > Regards, > Varun Thacker > http://varunthacker.wordpress.com > FWIW (and for a laugh and a little healthy humorous digression), here's a great thread on one of its issues http://code.google.com/p/go/issues/detail?id=9 -- ------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From dhananjay.nene at gmail.com Wed Nov 11 14:19:38 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Wed, 11 Nov 2009 18:49:38 +0530 Subject: [BangPypers] Google Go In-Reply-To: References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> Message-ID: On Wed, Nov 11, 2009 at 6:46 PM, Dhananjay Nene wrote: > On Wed, Nov 11, 2009 at 2:23 PM, wrote: > >> I just heard about Google Go.My first reaction was of excitement.But when >> i read about it i'm clueless as to what is it aiming for? >> What do every feel about it? >> >> this is the link to the blog post announcing Go. >> http://google-opensource.blogspot.com/2009/11/hey-ho-lets-go.html >> >> Regards, >> Varun Thacker >> http://varunthacker.wordpress.com >> > > FWIW (and for a laugh and a little healthy humorous digression), here's a > great thread on one of its issues > http://code.google.com/p/go/issues/detail?id=9 > > On a more serious note, here's a thread on the unladen list suggesting some conflict between python and go within google http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene http://twitter.com/_pythonic From anand.shashwat at gmail.com Wed Nov 11 14:20:14 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Wed, 11 Nov 2009 18:50:14 +0530 Subject: [BangPypers] Google Go In-Reply-To: <6e38f9f00911110458h7b087da7ta4bb55c78267965b@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <4AFAAFFE.6000507@gmail.com> <6e38f9f00911110458h7b087da7ta4bb55c78267965b@mail.gmail.com> Message-ID: Go - a son of C++ and python .. ?? to me it looked like verbose C .. first impression..not good. I mean it's ok..but not to the level of Google. We expect better from mythical Google engineers. On Wed, Nov 11, 2009 at 6:28 PM, Ramdas S wrote: > On Wed, Nov 11, 2009 at 6:07 PM, Darkseid wrote: > > > > >> I found out yesterday that the application has to be developed on a > >> proven > >> technology like Java,C++ or C#. When I spoke to the gentleman he said > his > >> consultant said that dynamically typed languages are not safe for > mission > >> critical work. The work is far from being mission-critical is another > >> point > >> altogether..... > >> > > I do hope you snidely pointed out to him that half of Google runs on > > Python? :D > > > > That's been the original pitch since some time. These days there are > creative lies also around some other companies > which may have couple of teams working on Python, and I sometimes paint a > picture that half the world runs on Python. > > > Problem is actually consultants are somehow trusted more, than a peddler of > services from a small IT shop. And since consultants also bill as a percent > of the project costs, they want to ensure that stuff that'll take more > hours > to write, more hours to maintain, and almost always ends up in extended > budget costs get sold... > > Well that's sad state of affairs.... > > > Best, > > Sidu. > > http://blog.sidu.in > > http://twitter.com/ponnappa > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Ramdas S > +91 9342 583 065 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Wed Nov 11 14:33:24 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 11 Nov 2009 19:03:24 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> Message-ID: <9963e56e0911110533l127f65a7r95ab8d9d3a0144a8@mail.gmail.com> On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai wrote: [..] > ?Upon 2nd reading, I also thought they did, but not a very good > ?disambiguation there I daresay. But "security benefits associated to > ?a compiled language" - ?I fall flat there since I don't see any > ?correlation with a language being compiled and its security! [..] Security in this context meaning, I can distribute binary blobs of code whose source you can't read. -- ~noufal http://nibrahim.net.in From steve at lonetwin.net Wed Nov 11 14:36:26 2009 From: steve at lonetwin.net (steve) Date: Wed, 11 Nov 2009 19:06:26 +0530 Subject: [BangPypers] Google Go In-Reply-To: <3e3294b70911110452m15ab0457r8e72478c0da233e0@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <6e38f9f00911110247h1dce9183uc5d6ac1e23047255@mail.gmail.com> <4AFA9D9E.7030509@lonetwin.net> <3e3294b70911110452m15ab0457r8e72478c0da233e0@mail.gmail.com> Message-ID: <4AFABDDA.8020308@lonetwin.net> On 11/11/2009 06:22 PM, Pradeep Gowda wrote: > On Wed, Nov 11, 2009 at 6:18 AM, steve wrote: >> On 11/11/2009 04:17 PM, Ramdas S wrote: >>>> [...snip...] >>> Yeah! I jumped the line without reading. Actually going through now and >>> downloading the stuff I cant see much from Python perspective, that >>> bloody >>> language is full of braces, but yes syntactically its more sugary and >>> clean >>> >> seriously ?? no, really, are you serious ? you got more sugary from >> Titlecase.Method.Names ? (Printf now requires a damn shift key !! what was >> ken thompson thinking ??). > > Case defines scope. > > Capitalised variables/methods (eg:Telephone) are public. > ones starting in lower case (eg:telephone) are private. Yikes ! even worse ! Why couldn't they just have switched it around and made the private variables/methods harder to type and the public ones easier ...like, for instance, you know ...in python. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From ramdaz at gmail.com Wed Nov 11 14:38:26 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 11 Nov 2009 19:08:26 +0530 Subject: [BangPypers] Google Go In-Reply-To: <3e3294b70911110514o550c836bnb1b031cad1558f0c@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <1c4dc2780911110436n3145f335h476a3074b676e149@mail.gmail.com> <8548c5f30911110455v4c53095bu4aa7f3125af5f587@mail.gmail.com> <3e3294b70911110514o550c836bnb1b031cad1558f0c@mail.gmail.com> Message-ID: <6e38f9f00911110538m4188281enf93fba3f86c4bf0d@mail.gmail.com> On Wed, Nov 11, 2009 at 6:44 PM, Pradeep Gowda wrote: > On Wed, Nov 11, 2009 at 7:55 AM, Anand Balachandran Pillai > wrote: > > On Wed, Nov 11, 2009 at 6:06 PM, Roshan Mathews > wrote: > > > >> On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai > >> wrote: > >> > Upon 2nd reading, I also thought they did, but not a very good > >> > disambiguation there I daresay. But "security benefits associated to > >> > a compiled language" - I fall flat there since I don't see any > >> > correlation with a language being compiled and its security! > >> > > >> > Pretty shoddy marketing this... > >> > > >> The Go people said this? Where are you quoting from? > >> > >> > > Not sure if go people said this. But it is in the techcrunch link > > posted by Sriram, in another thread, 1st paragraph. > > > > http://www.techcrunch.com/2009/11/10/google-go-language/ > > > > I didn't make it up :-) > > Straight from the horse's mouth: > http://golang.org/doc/go_lang_faq.html#creating_a_new_language > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > They seem to be having an MVC framework too,. Now another one :) -- Ramdas S +91 9342 583 065 From rmathews at gmail.com Wed Nov 11 14:49:56 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 19:19:56 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110455v4c53095bu4aa7f3125af5f587@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <1c4dc2780911110436n3145f335h476a3074b676e149@mail.gmail.com> <8548c5f30911110455v4c53095bu4aa7f3125af5f587@mail.gmail.com> Message-ID: <1c4dc2780911110549k4ba7fb9cif65e0e91d1d3941f@mail.gmail.com> On Wed, Nov 11, 2009 at 6:25 PM, Anand Balachandran Pillai wrote: > ?Not sure if go people said this. But it is in the techcrunch link > ?posted by Sriram, in another thread, 1st paragraph. > > ?http://www.techcrunch.com/2009/11/10/google-go-language/ > > ?I didn't make it up :-) > Wasn't suggesting that you did. :) Techcrunch isn't the best source to quote though. From benignbala at gmail.com Wed Nov 11 14:52:53 2009 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Wed, 11 Nov 2009 19:22:53 +0530 Subject: [BangPypers] Google Go In-Reply-To: References: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <4AFAAFFE.6000507@gmail.com> <6e38f9f00911110458h7b087da7ta4bb55c78267965b@mail.gmail.com> Message-ID: On Wed, Nov 11, 2009 at 6:50 PM, Shashwat Anand wrote: > Go - a son of C++ and python .. ?? > to me it looked like verbose C .. first impression..not good. I mean it's > ok..but not to the level of Google. We expect better from mythical Google > engineers. > Well, more than Google, you should be looking at Ken Thompson nad Rob Pike - the UNIX guys. I still have a hope somewhere deep down that Thompson and Pike would not be doing something silly. -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From rmathews at gmail.com Wed Nov 11 15:00:21 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 19:30:21 +0530 Subject: [BangPypers] Google Go In-Reply-To: <8548c5f30911110500j44ad253ara0abb12f834f0fc4@mail.gmail.com> References: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> <8548c5f30911110500j44ad253ara0abb12f834f0fc4@mail.gmail.com> Message-ID: <1c4dc2780911110600r49f79e61l4e42dfe3b18b176c@mail.gmail.com> On Wed, Nov 11, 2009 at 6:30 PM, Anand Balachandran Pillai wrote: > On Wed, Nov 11, 2009 at 6:14 PM, Roshan Mathews wrote: >> The "looks like Python, runs like C++" is more than just marketing >> speak. > > ?If you haven't noticed, "Looks like Python, runs like C++" has a lot of > ?marketing potential, since Python has a reputation to be the cleanest > ?of languages w.r.t syntax and readability and C++, that of power and speed. > ?So if you say this is not marketing speak, I am not buying it... > > ?If you are designing a language which you claim is ultimate in this > ?decade, that is exactly the punch line you want... > Aye, that's why I say it's more than just marketing. It's positive, yes, subjective too, so maybe it's marketing-esque, but to just brush it off as marketing speak means you miss out on what it is aiming for. I don't know if it is there yet. Maybe it never will be, but there are people designing languages to that ideal, not to that punchline. Although, yes, I would grant that it does make a rather fine punchline. :) From abpillai at gmail.com Wed Nov 11 15:15:42 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 19:45:42 +0530 Subject: [BangPypers] Google Go In-Reply-To: <9963e56e0911110533l127f65a7r95ab8d9d3a0144a8@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <9963e56e0911110533l127f65a7r95ab8d9d3a0144a8@mail.gmail.com> Message-ID: <8548c5f30911110615x51e7dc4djbfbf29d456c5e30d@mail.gmail.com> On Wed, Nov 11, 2009 at 7:03 PM, Noufal Ibrahim wrote: > On Wed, Nov 11, 2009 at 5:22 PM, Anand Balachandran Pillai > wrote: > [..] > > Upon 2nd reading, I also thought they did, but not a very good > > disambiguation there I daresay. But "security benefits associated to > > a compiled language" - I fall flat there since I don't see any > > correlation with a language being compiled and its security! > [..] > > Security in this context meaning, I can distribute binary blobs of > code whose source you can't read. > That is obscurity, not security ;) > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From harish.mallipeddi at gmail.com Wed Nov 11 15:19:46 2009 From: harish.mallipeddi at gmail.com (Harish Mallipeddi) Date: Wed, 11 Nov 2009 19:49:46 +0530 Subject: [BangPypers] Google Go In-Reply-To: <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> Message-ID: On Wed, Nov 11, 2009 at 6:14 PM, Roshan Mathews wrote: > On Wed, Nov 11, 2009 at 5:48 PM, Anand Balachandran Pillai > wrote: > > The point is that so called compiled languages provide more security > > loop-holes than interpreted ones. C++/C for example provide liberal > > scope for buffer overflow exploits due to use of pointers and manual > > memory management. > > > > Accessing any buffer outside the scope of your data structures is always > > a potential window for the malicious hacker for buffer overflow > exploits. > > And C/C++ are notorious for making this easy providing you with > > different ways of shooting yourself in the foot... > > > That would be because C/C++ are weakly typed, not because they are > compiled. Java is compiled right, does it have buffer overruns? > > Going by the popular definition of weak/strong typing, what has weak typing in C/C++ anything to do with buffer overflow errors? Javascript is weakly typed but you don't have buffer overflow problems there. I would assume that people are arguing for strong typing for > efficiency. A language with run time dynamic dispatch, like say > Python, will always be slower than something which is statically > typed. > > Again why would strong typing get you efficiency? -- Harish Mallipeddi http://blog.poundbang.in From lorddaemon at gmail.com Wed Nov 11 15:36:27 2009 From: lorddaemon at gmail.com (Darkseid) Date: Wed, 11 Nov 2009 20:06:27 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> Message-ID: <4AFACBEB.5040105@gmail.com> > > 2. It's easy to hire an IDE-aware monkey to do programming in "proven > technology" I do most of my work in Ruby (and have done for a few years now). Every day I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A good IDE is a massive productivity booster; you can only get so far with a text editor*, no matter how many macros you have set up. Honestly. Best, Sidu. http://blog.sidu.in http://twitter.com/ponnappa * This is especially true of USD1800 text editors like Visual Studio. Pradeep Gowda wrote: >> That's what the big boys of the world wants you to believe. I had met a very >> senior official in the government a techy himself and spent 3 hours showing >> him virtues of Python and Django, hoping that they will change the RFP >> terms. >> >> I found out yesterday that the application has to be developed on a proven >> technology like Java,C++ or C#. When I spoke to the gentleman he said his >> consultant said that dynamically typed languages are not safe for mission >> critical work. The work is far from being mission-critical is another point >> altogether..... >> > > That's because "big boys" define the market suitable to themselves. > > 1. it's easier to code more, take more time when using "proven technology" > 2. It's easy to hire an IDE-aware monkey to do programming in "proven > technology". > > Anyway, one answer to "proven technology" bugaboo is Jython and > IronPython. It's still Java(platform) and .NET > with bi-directional compatibility. > +PG > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From abpillai at gmail.com Wed Nov 11 16:03:55 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 20:33:55 +0530 Subject: [BangPypers] Google Go In-Reply-To: References: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <4AFAAFFE.6000507@gmail.com> <6e38f9f00911110458h7b087da7ta4bb55c78267965b@mail.gmail.com> Message-ID: <8548c5f30911110703l3e5b765eg3ccb693e1062f09a@mail.gmail.com> On Wed, Nov 11, 2009 at 7:22 PM, Balachandran Sivakumar < benignbala at gmail.com> wrote: > On Wed, Nov 11, 2009 at 6:50 PM, Shashwat Anand > wrote: > > Go - a son of C++ and python .. ?? > > to me it looked like verbose C .. first impression..not good. I mean it's > > ok..but not to the level of Google. We expect better from mythical Google > > engineers. > > > Well, more than Google, you should be looking at Ken Thompson nad Rob > Pike - the UNIX guys. I still have a hope somewhere deep down that > Thompson and Pike would not be doing something silly. > People are more likely to do altruistic things when they are young and work for just money when they are old... Derive -> Just because Ken and co produced legendary stuff back in the 70s does not preclude them from producing shoddy stuff in the 2000's. > > -- > Thank you > Balachandran Sivakumar > > Arise Awake and stop not till the goal is reached. > > Mail: benignbala at gmail.com > Blog: http://benignbala.wordpress.com/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From yuvipanda at gmail.com Wed Nov 11 16:07:45 2009 From: yuvipanda at gmail.com (Yuvi Panda) Date: Wed, 11 Nov 2009 20:37:45 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFACBEB.5040105@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> Message-ID: <45ec909c0911110707j725ebf3fs4a504ec53acfadd5@mail.gmail.com> VS is no just-text editor. But hey, that's a flame war waiting to happen! On Wed, Nov 11, 2009 at 8:06 PM, Darkseid wrote: > >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology" >> > I do most of my work in Ruby (and have done for a few years now). Every day > I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A > good IDE is a massive productivity booster; you can only get so far with a > text editor*, no matter how many macros you have set up. Honestly. > > Best, > Sidu. > http://blog.sidu.in > http://twitter.com/ponnappa > > * This is especially true of USD1800 text editors like Visual Studio. > > Pradeep Gowda wrote: > >> That's what the big boys of the world wants you to believe. I had met a >>> very >>> senior official in the government a techy himself and spent 3 hours >>> showing >>> him virtues of Python and Django, hoping that they will change the RFP >>> terms. >>> >>> I found out yesterday that the application has to be developed on a >>> proven >>> technology like Java,C++ or C#. When I spoke to the gentleman he said his >>> consultant said that dynamically typed languages are not safe for mission >>> critical work. The work is far from being mission-critical is another >>> point >>> altogether..... >>> >>> >> >> That's because "big boys" define the market suitable to themselves. >> >> 1. it's easier to code more, take more time when using "proven technology" >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology". >> >> Anyway, one answer to "proven technology" bugaboo is Jython and >> IronPython. It's still Java(platform) and .NET >> with bi-directional compatibility. >> +PG >> _______________________________________________ >> 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 > -- Yuvi Panda T http://yuvisense.net From abpillai at gmail.com Wed Nov 11 16:08:46 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 11 Nov 2009 20:38:46 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFACBEB.5040105@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> Message-ID: <8548c5f30911110708v35b04bd0je8255e1059548bed@mail.gmail.com> On Wed, Nov 11, 2009 at 8:06 PM, Darkseid wrote: > >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology" >> > I do most of my work in Ruby (and have done for a few years now). Every day > I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A > good IDE is a massive productivity booster; you can only get so far with a > text editor*, no matter how many macros you have set up. Honestly. > On E M A C S since 1998 and not doing very bad either... > Best, > Sidu. > http://blog.sidu.in > http://twitter.com/ponnappa > > * This is especially true of USD1800 text editors like Visual Studio. > > Pradeep Gowda wrote: > >> That's what the big boys of the world wants you to believe. I had met a >>> very >>> senior official in the government a techy himself and spent 3 hours >>> showing >>> him virtues of Python and Django, hoping that they will change the RFP >>> terms. >>> >>> I found out yesterday that the application has to be developed on a >>> proven >>> technology like Java,C++ or C#. When I spoke to the gentleman he said his >>> consultant said that dynamically typed languages are not safe for mission >>> critical work. The work is far from being mission-critical is another >>> point >>> altogether..... >>> >>> >> >> That's because "big boys" define the market suitable to themselves. >> >> 1. it's easier to code more, take more time when using "proven technology" >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology". >> >> Anyway, one answer to "proven technology" bugaboo is Jython and >> IronPython. It's still Java(platform) and .NET >> with bi-directional compatibility. >> +PG >> _______________________________________________ >> 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 > -- --Anand From lorddaemon at gmail.com Wed Nov 11 16:13:12 2009 From: lorddaemon at gmail.com (Darkseid) Date: Wed, 11 Nov 2009 20:43:12 +0530 Subject: [BangPypers] Google Go In-Reply-To: References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> Message-ID: <4AFAD488.1000700@gmail.com> > > Javascript is weakly > typed but you don't have buffer overflow problems there. That's something I've never understood even though the all powerful wikipedia says JS is weakly typed. Can someone give me an example to illustrate the weak typing? > I would assume that people are arguing for strong typing for > >> efficiency. A language with run time dynamic dispatch, like say >> Python, will always be slower than something which is statically >> typed. >> >> >> > Again why would strong typing get you efficiency? > I think Anand meant statically typed (he used strongly typed first and then used statically typed while clearly referring to the same thing). Static typing certainly allows for a great deal of compile time optimization, neh? Best, Sidu. Harish Mallipeddi wrote: > On Wed, Nov 11, 2009 at 6:14 PM, Roshan Mathews wrote: > > >> On Wed, Nov 11, 2009 at 5:48 PM, Anand Balachandran Pillai >> wrote: >> >>> The point is that so called compiled languages provide more security >>> loop-holes than interpreted ones. C++/C for example provide liberal >>> scope for buffer overflow exploits due to use of pointers and manual >>> memory management. >>> >>> Accessing any buffer outside the scope of your data structures is always >>> a potential window for the malicious hacker for buffer overflow >>> >> exploits. >> >>> And C/C++ are notorious for making this easy providing you with >>> different ways of shooting yourself in the foot... >>> >>> >> That would be because C/C++ are weakly typed, not because they are >> compiled. Java is compiled right, does it have buffer overruns? >> >> >> > Going by the popular definition of weak/strong typing, what has weak typing > in C/C++ anything to do with buffer overflow errors? Javascript is weakly > typed but you don't have buffer overflow problems there. > > I would assume that people are arguing for strong typing for > >> efficiency. A language with run time dynamic dispatch, like say >> Python, will always be slower than something which is statically >> typed. >> >> >> > Again why would strong typing get you efficiency? > > From pradeep at btbytes.com Wed Nov 11 16:21:14 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 11 Nov 2009 10:21:14 -0500 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFACBEB.5040105@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> Message-ID: <3e3294b70911110721l1c41c69by5a1ba517cc98c0b7@mail.gmail.com> On Wed, Nov 11, 2009 at 9:36 AM, Darkseid wrote: >> >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology" > > I do most of my work in Ruby (and have done for a few years now). Every day > I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A > good IDE is a massive productivity booster; you can only get so far with a > text editor*, no matter how many macros you have set up. Honestly. My riff was on the "monkey" part, not on the IDE part. A programmer who uses IDEs for refactoring etc., is a more evolved primate, IMO ;) The bogus argument about "proven technologies" often stems from the belief that having a point-and-click-and-get-a-banana is a proof of maturity or "enterprise-readiness" . Platforms which are heavily IDE centric (eg: MS technologies) tend to encourage their developers to think inside the box (IDE) all the time. Even though most Java programmers do use Eclipse/Netbeans/IntelliJ it is not unheard of them to use vim/emacs more often than you hear a .NET developer using them. IDEs have their advantages. But more often than not, they also hide complexity behind all the boiler-code and templates. If programmers had to write XML by hand instead of having them spit-out by the IDE, we would have seen saner uses of XML in Java land, for instance. From rmathews at gmail.com Wed Nov 11 16:36:35 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 21:06:35 +0530 Subject: [BangPypers] Google Go In-Reply-To: References: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> Message-ID: <1c4dc2780911110736i1ab47ca3ke10ee1d3e5e52eac@mail.gmail.com> Harish, I [shall carefully reply to] you because I had [searched my mail and found] that you were a serious man, to be treated with respect. But I must say no to you and let me give you my reasons. It's true I have a lot of friends in [software], but they wouldn't be so friendly if they knew my business was [pontificating] instead of [flaming] which they consider a harmless vice. But [pontification], that's a dirty business. On Wed, Nov 11, 2009 at 7:49 PM, Harish Mallipeddi wrote: > Going by the popular definition of weak/strong typing, what has weak typing > in C/C++ anything to do with buffer overflow errors? Javascript is weakly > typed but you don't have buffer overflow problems there. > Hmm... this is going to get tricky, since everyone seems to have different opinions on what these terms mean. I'm very confused about JavaScript. Why do you say it's weakly typed? I did a quick web search on this, and most people seem to agree with you, based on the fact that in JavaScript: >>> "hello" + 10 "hello10" >>> 10 + "hello" "10hello" So everything can be, uh, "promoted" to a String. But can I, say, take an Object and treat it as a number? Or an Array as a String? Or is JavaScript weak in certain directions and strong in others? Maybe you should let on what you mean by strong/weak typing. What I meant by saying that weak typing in C/C++ causes buffer overruns is that everything is just a memory location, since you can arbitrarily switch between pointers and types, which means that you can't have sanity checks for array accesses (which are your buffer overruns) without changing the language itself. > I would assume that people are arguing for strong typing for >> efficiency. A language with run time dynamic dispatch, like say >> Python, will always be slower than something which is statically >> typed. >> >> > Again why would strong typing get you efficiency? > Am I comparing apples and potatoes, if I am please do let me know. I say that run time dynamic dispatch is slow because you always need to look things up, specially in python since you can arbitrarily change anything at runtime, on the other hand, if you have a strongly typed language (thanks for catching that) then you know at compile time what you want your code to do, hence you don't have to find that out at runtime, time saved doing that makes your language faster all other things being equal. I could be horribly wrong, I don't know enough about programming languages to be sure. So please do let me know if you think so. How about this, lets make it less controversial and bring the talk back to safer ground: the best Python code will always be slower than high quality C++ code no matter how good the Python optimizers get. Speed might not be always important and yada-yada-yada, that's irrelevant to the last statement. I write more Python than C++, so yeah, I've heard of most of those reasons. Roshan From rmathews at gmail.com Wed Nov 11 16:38:53 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 11 Nov 2009 21:08:53 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFACBEB.5040105@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> Message-ID: <1c4dc2780911110738p2daad953ge25816946649c628@mail.gmail.com> On Wed, Nov 11, 2009 at 8:06 PM, Darkseid wrote: > you can only get so far with a > text editor*, no matter how many macros you have set up. Honestly. > Macros?? Really??? Don't you mean "no matter how many scripts you have set up"???? :) From lorddaemon at gmail.com Wed Nov 11 16:51:43 2009 From: lorddaemon at gmail.com (Darkseid) Date: Wed, 11 Nov 2009 21:21:43 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <8548c5f30911110708v35b04bd0je8255e1059548bed@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> <8548c5f30911110708v35b04bd0je8255e1059548bed@mail.gmail.com> Message-ID: <4AFADD8F.7020601@gmail.com> Yes, yes, I know, I know. While I'm no vi or emacs guru, I've paired (for a fair amount of time) with experienced VI and Emacs users. Snippets, Ctags etc. help a great deal - but have you ever worked with an AST aware development environment where you can safely make structural changes across your entire codebase? Try extracting an Interface from a Class and replace all references to the class with references to the interface across a 5000 class codebase by hand in a few seconds, without a single error afterward. How about add a parameter to a constructor, and have all references to said constructor changed? You can do all that and more with IntelliJ. The thing is, code should be like clay in the hands of a hacker; the fact that we have to deal with the AST via a text 'view' *really* slows us down. We often hesitate to make necessary changes because the manual effort involved in getting the refactoring done, and then testing it afterward for bugs is non-trivial. Even a simple 'Rename Class' refactoring can become a chore in a large codebase. The guys at Intentional and JetBrains are taking a serious shot at letting us mould the AST directly - but until their efforts reach maturity, IntelliJ is the closest we're going to get to it (and its going to be open source soon). I'm happy to demo it sometime, too. Don't diss it until you've tried it, preferably on a non toy project. Best, Sidu. Anand Balachandran Pillai wrote: > On Wed, Nov 11, 2009 at 8:06 PM, Darkseid wrote: > > >>> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >>> technology" >>> >>> >> I do most of my work in Ruby (and have done for a few years now). Every day >> I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A >> good IDE is a massive productivity booster; you can only get so far with a >> text editor*, no matter how many macros you have set up. Honestly. >> >> > > On E M A C S since 1998 and not doing very bad either... > > > >> Best, >> Sidu. >> http://blog.sidu.in >> http://twitter.com/ponnappa >> >> * This is especially true of USD1800 text editors like Visual Studio. >> >> Pradeep Gowda wrote: >> >> >>> That's what the big boys of the world wants you to believe. I had met a >>> >>>> very >>>> senior official in the government a techy himself and spent 3 hours >>>> showing >>>> him virtues of Python and Django, hoping that they will change the RFP >>>> terms. >>>> >>>> I found out yesterday that the application has to be developed on a >>>> proven >>>> technology like Java,C++ or C#. When I spoke to the gentleman he said his >>>> consultant said that dynamically typed languages are not safe for mission >>>> critical work. The work is far from being mission-critical is another >>>> point >>>> altogether..... >>>> >>>> >>>> >>> That's because "big boys" define the market suitable to themselves. >>> >>> 1. it's easier to code more, take more time when using "proven technology" >>> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >>> technology". >>> >>> Anyway, one answer to "proven technology" bugaboo is Jython and >>> IronPython. It's still Java(platform) and .NET >>> with bi-directional compatibility. >>> +PG >>> _______________________________________________ >>> 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 lorddaemon at gmail.com Wed Nov 11 16:59:19 2009 From: lorddaemon at gmail.com (Darkseid) Date: Wed, 11 Nov 2009 21:29:19 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <1c4dc2780911110738p2daad953ge25816946649c628@mail.gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> <1c4dc2780911110738p2daad953ge25816946649c628@mail.gmail.com> Message-ID: <4AFADF57.3080200@gmail.com> Yeah, that too :) Someday I will get of my ass and become a Emacs power user. Until then I'm muddling along with TextMate, snippets and a bunch of custom shell scripts. Of course http://martinfowler.com/bliki/IntentionalSoftware.html could become production ready first, in which case I may take longer :D Roshan Mathews wrote: > On Wed, Nov 11, 2009 at 8:06 PM, Darkseid wrote: > >> you can only get so far with a >> text editor*, no matter how many macros you have set up. Honestly. >> >> > Macros?? Really??? Don't you mean "no matter how many scripts you > have set up"???? :) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From ramdaz at gmail.com Wed Nov 11 16:52:09 2009 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 11 Nov 2009 21:22:09 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFACBEB.5040105@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> Message-ID: <6e38f9f00911110752w18bd0e2jf206906d6620c389@mail.gmail.com> On Wed, Nov 11, 2009 at 8:06 PM, Darkseid wrote: > >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology" >> > I do most of my work in Ruby (and have done for a few years now). Every day > I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A > good IDE is a massive productivity booster; you can only get so far with a > text editor*, no matter how many macros you have set up. Honestly. > I think what Pradeep was stressing was the kind of coders who expect half the software to be created by the magic of IDEs. I know several VB developers who cannot write five lines of code all by themselves without the familiar IDE interface. They exist, they are all around you. I have a customer who is still implementing a project that was originally assigned to a very Big IT shop (one among the top 3 in the country) which was supposed to be completed in 2004. I see a battery of developers writing code every day sitting at the customers place. I had show the original SRS document to a senior project leader No one here is debating the benefits of IDE. Even I wish there was a better IDE for Python sometimes. From noufal at gmail.com Wed Nov 11 17:01:24 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 11 Nov 2009 21:31:24 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFACBEB.5040105@gmail.com> References: <8CC30C390C47754-19B8-496@webmail-m037.sysops.aol.com> <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> Message-ID: <9963e56e0911110801g8a01b5cif83285f910716550@mail.gmail.com> On Wed, Nov 11, 2009 at 8:06 PM, Darkseid wrote: >> >> 2. It's easy to hire an IDE-aware monkey to do programming in "proven >> technology" > > I do most of my work in Ruby (and have done for a few years now). Every day > I bemoan the lack of a powerful refactoring IDE like Java has in IntelliJ. A > good IDE is a massive productivity booster; you can only get so far with a > text editor*, no matter how many macros you have set up. Honestly.[..] Good editor support is definitely a productivity booster. However, the OP's point is something I agree with. Too many people come out these days whose experience in 'enterprise application development' is to click on a few "Next>" buttons on a wizard and then cut/paste some code. These people are slaves to their IDEs rather than efficient users of a tool. That is something which I don't really admire. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Wed Nov 11 17:02:06 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 11 Nov 2009 11:02:06 -0500 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFADD8F.7020601@gmail.com> References: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> <8548c5f30911110708v35b04bd0je8255e1059548bed@mail.gmail.com> <4AFADD8F.7020601@gmail.com> Message-ID: <3e3294b70911110802y6dfc9d99y2843fc7c64945fae@mail.gmail.com> On Wed, Nov 11, 2009 at 10:51 AM, Darkseid wrote: > Yes, yes, I know, I know. While I'm no vi or emacs guru, I've paired (for a > fair amount of time) with experienced VI and Emacs users. Snippets, Ctags > etc. help a great deal - but have you ever worked with an AST aware > development environment where you can safely make structural changes across > your entire codebase? > > Try extracting an Interface from a Class and replace all references to the > class with references to the interface across a 5000 class codebase by hand > in a few seconds, without a single error afterward. How about add a > parameter to a constructor, and have all references to said constructor > changed? You can do all that and more with IntelliJ. > > The thing is, code should be like clay in the hands of a hacker; the fact > that we have to deal with the AST via a text 'view' *really* slows us down. > ?We often hesitate to make necessary changes because the manual effort > involved in getting the refactoring done, and then testing it afterward for > bugs is non-trivial. Even a simple 'Rename Class' refactoring can become a > chore in a large codebase. > > The guys at Intentional and JetBrains are taking a serious shot at letting > us mould the AST directly - but until their efforts reach maturity, IntelliJ > is the closest we're going to get to it (and its going to be open source > soon). I'm happy to demo it sometime, too. Don't diss it until you've tried > it, preferably on a non toy project. > Do I sense a pining for LISP here? AST, clay etc., ;) I have heard great things about IntelliJ IDEA. I'll give it a shot in my next Java foray. AFAIK, the open source, community edition of IDEA is going to have a subset of the features. From noufal at gmail.com Wed Nov 11 17:13:38 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 11 Nov 2009 21:43:38 +0530 Subject: [BangPypers] But IDEs rock! (was Google Go) In-Reply-To: <4AFADD8F.7020601@gmail.com> References: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <3e3294b70911110458h4cd1a3a5t52b0dcacecfb377b@mail.gmail.com> <4AFACBEB.5040105@gmail.com> <8548c5f30911110708v35b04bd0je8255e1059548bed@mail.gmail.com> <4AFADD8F.7020601@gmail.com> Message-ID: <9963e56e0911110813g19540ac7m10330bebfa64ef8b@mail.gmail.com> On Wed, Nov 11, 2009 at 9:21 PM, Darkseid wrote: > Yes, yes, I know, I know. While I'm no vi or emacs guru, I've paired (for a > fair amount of time) with experienced VI and Emacs users. Snippets, Ctags > etc. help a great deal - but have you ever worked with an AST aware > development environment where you can safely make structural changes across > your entire codebase? I'd much prefer an AST aware code refactoring tool which my editor can interface with rather than something built into my editor. Separate components that communicate with each other etc. The whole UNIX thing.* I'll admit that I not very much into the agile workflow so refactoring is not something I do heavily. Perhaps I'd see things differently if that was the case. I'd also like to use the same 'editor' for all my text-typing needs (that includes code, email, documentation, essays, blogs, IRC etc.). It's quite nice to have the same keystrokes, macros and other things work consistently in all places where I have to type. You probably know what I use by now. :) [..] * Since this came up (and I think I've already mentioned this to you), you should check out the wily editor - http://www.cse.yorku.ca/~oz/wily/. Not just refactoring, but it even delegates global search/replace to an external process. :) -- ~noufal http://nibrahim.net.in From jaganadhg at gmail.com Wed Nov 11 18:47:24 2009 From: jaganadhg at gmail.com (JAGANADH G) Date: Wed, 11 Nov 2009 23:17:24 +0530 Subject: [BangPypers] Python place holder doubt Message-ID: 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 From sbabu.bly at gmail.com Wed Nov 11 19:10:17 2009 From: sbabu.bly at gmail.com (satyandra babu) Date: Wed, 11 Nov 2009 23:40:17 +0530 Subject: [BangPypers] Need help for SpiffWorkflow Message-ID: Hi, Can anybody help me on spiffworkflow? code is given here http://code.google.com/p/spiff-workflow/ i am not able to get documentation for this, if anyone of you can help me, i will be very greatfull. Its based on http://workflowpatterns.com/, and big library to implement Workflow.I dont have any pror knowledge of it. So please help me, How we can use it? Thanks in Advance. Thanks Regards Satya From pradeep at btbytes.com Wed Nov 11 19:11:05 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 11 Nov 2009 13:11:05 -0500 Subject: [BangPypers] Python place holder doubt In-Reply-To: References: Message-ID: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> 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.python.org/library/urllib.html which is part of the standard library. Using "+" to concat more than two strings is definitely unpythonic. Also: Do NOT cross post to multiple lists. From jaganadhg at gmail.com Wed Nov 11 19:32:14 2009 From: jaganadhg at gmail.com (JAGANADH G) Date: Thu, 12 Nov 2009 00:02:14 +0530 Subject: [BangPypers] Python place holder doubt In-Reply-To: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> Message-ID: 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 problem, don't use it. > > To encode URLs always use urlencode: > http://docs.python.org/library/urllib.html > which is part of the standard library. > > Using "+" to concat more than two strings is definitely unpythonic. > > Also: > Do NOT cross post to multiple lists. > Thanks it works . -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From jaganadhg at gmail.com Wed Nov 11 19:32:33 2009 From: jaganadhg at gmail.com (JAGANADH G) Date: Thu, 12 Nov 2009 00:02:33 +0530 Subject: [BangPypers] Python place holder doubt In-Reply-To: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> Message-ID: 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 problem, don't use it. > > To encode URLs always use urlencode: > http://docs.python.org/library/urllib.html > which is part of the standard library. > > Using "+" to concat more than two strings is definitely unpythonic. > > Thanks -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog Sent from Chennai, TN, India From ramp99 at gmail.com Thu Nov 12 05:26:51 2009 From: ramp99 at gmail.com (Rama Rao Polneni) Date: Thu, 12 Nov 2009 09:56:51 +0530 Subject: [BangPypers] WxPython : List box Message-ID: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> Hi, Can you please help me in writing python code for the follwing requirement. I have a list box. In which I need to browse multiple files from multiple locations and need to show them in the list box. Then I will be able to read all the file names("all" means-No selection/deselction mechanism) in the list box and to print them. Thanks in advance, Rama Rao From david.lyon at preisshare.net Thu Nov 12 05:25:51 2009 From: david.lyon at preisshare.net (David Lyon) Date: Wed, 11 Nov 2009 23:25:51 -0500 Subject: [BangPypers] WxPython : List box In-Reply-To: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> Message-ID: <456cffcc473fc4b4b075d3d347c758dc@preisshare.net> Rama, Best thing to do is download Boa Constructor. It is an IDE that will allow you to get through that task in under 30 minutes. David On Thu, 12 Nov 2009 09:56:51 +0530, Rama Rao Polneni wrote: > Hi, > > Can you please help me in writing python code for the follwing requirement. > > I have a list box. In which I need to browse multiple files from multiple > locations and need to show them in the list box. > > Then I will be able to read all the file names("all" means-No > selection/deselction mechanism) in the list box and to print them. > > Thanks in advance, > Rama Rao > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From ramp99 at gmail.com Thu Nov 12 05:35:52 2009 From: ramp99 at gmail.com (Rama Rao Polneni) Date: Thu, 12 Nov 2009 10:05:52 +0530 Subject: [BangPypers] WxPython : List box In-Reply-To: <456cffcc473fc4b4b075d3d347c758dc@preisshare.net> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> <456cffcc473fc4b4b075d3d347c758dc@preisshare.net> Message-ID: <9a8a0e230911112035y43393646yccd1f20120c0a60d@mail.gmail.com> Hi David, I am using BOA. Bu the problem here is I am able to read only selected files. But I want to read all the files. and I dont know how to insert horizantal scrollbar in listbox.as my file name contains full path. It will be very long. Thanks, Rama On 11/12/09, David Lyon wrote: > > > Rama, > > Best thing to do is download Boa Constructor. It is an > IDE that will allow you to get through that task in under > 30 minutes. > > David > > On Thu, 12 Nov 2009 09:56:51 +0530, Rama Rao Polneni > wrote: > > Hi, > > > > Can you please help me in writing python code for the follwing > requirement. > > > > I have a list box. In which I need to browse multiple files from multiple > > locations and need to show them in the list box. > > > > Then I will be able to read all the file names("all" means-No > > selection/deselction mechanism) in the list box and to print them. > > > > Thanks in advance, > > Rama Rao > > _______________________________________________ > > 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 david.lyon at preisshare.net Thu Nov 12 05:33:24 2009 From: david.lyon at preisshare.net (David Lyon) Date: Wed, 11 Nov 2009 23:33:24 -0500 Subject: [BangPypers] WxPython : List box In-Reply-To: <9a8a0e230911112035y43393646yccd1f20120c0a60d@mail.gmail.com> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> <456cffcc473fc4b4b075d3d347c758dc@preisshare.net> <9a8a0e230911112035y43393646yccd1f20120c0a60d@mail.gmail.com> Message-ID: <242b6e1badd3174ba15d07da6f5a706a@preisshare.net> On Thu, 12 Nov 2009 10:05:52 +0530, Rama Rao Polneni wrote: > Hi David, > > I am using BOA. > > Bu the problem here is I am able to read only selected files. But I want to > read all the files. and I dont know how to insert horizantal scrollbar in > listbox.as my file name contains full path. It will be very long. > > Thanks, > Rama Oh, what you can do is trim out the path by using os.path.basename() That will let you extract only the name of the file and give you a lot more space. Daivd From ramp99 at gmail.com Thu Nov 12 05:42:43 2009 From: ramp99 at gmail.com (Rama Rao Polneni) Date: Thu, 12 Nov 2009 10:12:43 +0530 Subject: [BangPypers] WxPython : List box In-Reply-To: <242b6e1badd3174ba15d07da6f5a706a@preisshare.net> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> <456cffcc473fc4b4b075d3d347c758dc@preisshare.net> <9a8a0e230911112035y43393646yccd1f20120c0a60d@mail.gmail.com> <242b6e1badd3174ba15d07da6f5a706a@preisshare.net> Message-ID: <9a8a0e230911112042i3b517d20t8784e7a4f1aeed1d@mail.gmail.com> David, This problem is not at all related to the parsing of the filenames. Here I strucked in GUI part only. 1. Reading all elements from from listbox. Currently I am able to read only selected files. 2. Displaying scrollbar. I dont know how to display scrollbar. Thanks, Rama Rao On 11/12/09, David Lyon wrote: > > On Thu, 12 Nov 2009 10:05:52 +0530, Rama Rao Polneni > wrote: > > Hi David, > > > > I am using BOA. > > > > Bu the problem here is I am able to read only selected files. But I want > to > > read all the files. and I dont know how to insert horizantal scrollbar in > > listbox.as my file name contains full path. It will be very long. > > > > Thanks, > > Rama > > Oh, what you can do is trim out the path by using os.path.basename() > > That will let you extract only the name of the file and give you > a lot more space. > > Daivd > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From david.lyon at preisshare.net Thu Nov 12 05:42:34 2009 From: david.lyon at preisshare.net (David Lyon) Date: Wed, 11 Nov 2009 23:42:34 -0500 Subject: [BangPypers] WxPython : List box In-Reply-To: <9a8a0e230911112042i3b517d20t8784e7a4f1aeed1d@mail.gmail.com> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> <456cffcc473fc4b4b075d3d347c758dc@preisshare.net> <9a8a0e230911112035y43393646yccd1f20120c0a60d@mail.gmail.com> <242b6e1badd3174ba15d07da6f5a706a@preisshare.net> <9a8a0e230911112042i3b517d20t8784e7a4f1aeed1d@mail.gmail.com> Message-ID: <9b023eef6f3dfe759c6020068115f324@preisshare.net> On Thu, 12 Nov 2009 10:12:43 +0530, Rama Rao Polneni wrote: > David, > > This problem is not at all related to the parsing of the filenames. > > Here I strucked in GUI part only. > > 1. Reading all elements from from listbox. Currently I am able to read only > selected files. Best to look at the docs. Can't remember off the top of my head. > 2. Displaying scrollbar. I dont know how to display scrollbar. There is a hscrollbar property that you set to true. It's in the object inspector on the second page. David From lawgon at au-kbc.org Thu Nov 12 06:01:21 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 12 Nov 2009 10:31:21 +0530 Subject: [BangPypers] WxPython : List box In-Reply-To: <9a8a0e230911112042i3b517d20t8784e7a4f1aeed1d@mail.gmail.com> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> <242b6e1badd3174ba15d07da6f5a706a@preisshare.net> <9a8a0e230911112042i3b517d20t8784e7a4f1aeed1d@mail.gmail.com> Message-ID: <200911121031.21445.lawgon@au-kbc.org> On Thursday 12 Nov 2009 10:12:43 am Rama Rao Polneni wrote: > 1. Reading all elements from from listbox. Currently I am able to read only > selected files. what do you mean by 'read all the elements' > 2. Displaying scrollbar. I dont know how to display scrollbar. > afaik both vertical and horizontal scrollbars appear by default if the matter is bigger than the size of the list box -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From noufal at gmail.com Thu Nov 12 07:12:16 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 12 Nov 2009 11:42:16 +0530 Subject: [BangPypers] Multiple versions of Python Message-ID: <9963e56e0911112212u58c1f7c5k6563d06b7596a060@mail.gmail.com> Someone on this list asked a while ago about installing and using different versions of Python on the same machine. Here's something relevant that might be useful. http://tartley.com/?p=883 -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Thu Nov 12 07:15:47 2009 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Thu, 12 Nov 2009 11:45:47 +0530 Subject: [BangPypers] Multiple versions of Python In-Reply-To: <9963e56e0911112212u58c1f7c5k6563d06b7596a060@mail.gmail.com> References: <9963e56e0911112212u58c1f7c5k6563d06b7596a060@mail.gmail.com> Message-ID: <3d62196a0911112215w1c614980o62e8108f9a29d607@mail.gmail.com> Noufal, that was me. I will check it out soon. Thanks. On Thu, Nov 12, 2009 at 11:42 AM, Noufal Ibrahim wrote: > Someone on this list asked a while ago about installing and using > different versions of Python on the same machine. Here's something > relevant that might be useful. > http://tartley.com/?p=883 > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From rgopiindian86 at gmail.com Thu Nov 12 07:55:38 2009 From: rgopiindian86 at gmail.com (R Gopinath) Date: Thu, 12 Nov 2009 12:25:38 +0530 Subject: [BangPypers] Best Python IDE with compiler Message-ID: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> Hi, I hope all the people here are my forefathers and experts in python. please suggest me a good IDE for python which can point out syntax errors while typind and also able to complie and produce output. -- Cheers, R.Gopinath, http://neuronring.com From noufal at gmail.com Thu Nov 12 08:24:35 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 12 Nov 2009 12:54:35 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> Message-ID: <9963e56e0911112324u1718632bh8bea2c20076f4cc0@mail.gmail.com> On Thu, Nov 12, 2009 at 12:25 PM, R Gopinath wrote: > Hi, > I hope all the people here are ?my forefathers and experts in python. please > suggest me a good IDE for python which can point out syntax errors while > typind and also able to complie and produce output. There are a couple of Python-only IDEs out there which might work for you. Eric, Idle, SPE are 3 that come to mind. I'm sure that bigger ones like Eclipse have Python plugins as well. I use Emacs + a couple of external things and it works for me. I had a link describing some useful customisations but it seems that delicious is down so I don't have it right now. -- ~noufal http://nibrahim.net.in From kausikram at gmail.com Thu Nov 12 08:37:26 2009 From: kausikram at gmail.com (kausikram krishnasayee) Date: Thu, 12 Nov 2009 13:07:26 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <9963e56e0911112324u1718632bh8bea2c20076f4cc0@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> <9963e56e0911112324u1718632bh8bea2c20076f4cc0@mail.gmail.com> Message-ID: <2597ddb90911112337u504c5d48h2ab365379cba60a1@mail.gmail.com> > > There are a couple of Python-only IDEs out there which might work for > you. Eric, Idle, SPE are 3 that come to mind. I'm sure that bigger > ones like Eclipse have Python plugins as well. > > I use Emacs + a couple of external things and it works for me. I had a > link describing some useful customisations but it seems that delicious > is down so I don't have it right now. There is also WingIDE and komodo which come at a price tag. But the one i use and love is pyscripter (which is free) . ULIpad is also an option. -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: chaosbudha.blogspot.com | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From zaki at manian.org Thu Nov 12 08:39:41 2009 From: zaki at manian.org (Zaki Manian) Date: Thu, 12 Nov 2009 13:09:41 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> Message-ID: I've recently switched to Spyder http://packages.python.org/spyder/ It has QT dependencies. I'm using it on Ubuntu Karmic and it has been a very happy . SPE is also a recent favorite but I'm not very happy with Wxwidgets http://pythonide.blogspot.com/ US number: +1 650-862-5992 Indian Number:+919945111824 On Thu, Nov 12, 2009 at 12:25 PM, R Gopinath wrote: > Hi, > I hope all the people here are my forefathers and experts in python. > please > suggest me a good IDE for python which can point out syntax errors while > typind and also able to complie and produce output. > > -- > Cheers, > R.Gopinath, > http://neuronring.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Thu Nov 12 08:42:12 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 12 Nov 2009 13:12:12 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <2597ddb90911112337u504c5d48h2ab365379cba60a1@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> <9963e56e0911112324u1718632bh8bea2c20076f4cc0@mail.gmail.com> <2597ddb90911112337u504c5d48h2ab365379cba60a1@mail.gmail.com> Message-ID: <200911121312.12789.lawgon@au-kbc.org> On Thursday 12 Nov 2009 1:07:26 pm kausikram krishnasayee wrote: > > There are a couple of Python-only IDEs out there which might work for > > you. Eric, Idle, SPE are 3 that come to mind. I'm sure that bigger > > ones like Eclipse have Python plugins as well. > > > > I use Emacs + a couple of external things and it works for me. I had a > > link describing some useful customisations but it seems that delicious > > is down so I don't have it right now. > > There is also WingIDE and komodo which come at a price tag. But the one i > use and love is pyscripter (which is free) . ULIpad is also an option. > geany - lightweight and fast -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From aravind.geek at gmail.com Thu Nov 12 09:04:16 2009 From: aravind.geek at gmail.com (Aravind Muthu) Date: Thu, 12 Nov 2009 13:34:16 +0530 Subject: [BangPypers] Python place holder doubt In-Reply-To: References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> Message-ID: 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: > >> 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.python.org/library/urllib.html >> which is part of the standard library. >> >> Using "+" to concat more than two strings is definitely unpythonic. >> >> Thanks > -- > ********************************** > JAGANADH G > http://jaganadhg.freeflux.net/blog > > Sent from Chennai, TN, India > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From rmathews at gmail.com Thu Nov 12 09:05:57 2009 From: rmathews at gmail.com (Roshan Mathews) Date: Thu, 12 Nov 2009 13:35:57 +0530 Subject: [BangPypers] Google Go In-Reply-To: <1c4dc2780911110736i1ab47ca3ke10ee1d3e5e52eac@mail.gmail.com> References: <9963e56e0911110212s648e9164pef763d6c78c3274e@mail.gmail.com> <8548c5f30911110229k60ca8d7fia51bc524ac95e252@mail.gmail.com> <9963e56e0911110232w52040e13y146346408576f0f7@mail.gmail.com> <8548c5f30911110352m4dfb0c9u591596c55926f130@mail.gmail.com> <6e38f9f00911110400vea45111mde7815be6c70ddb7@mail.gmail.com> <8548c5f30911110418p2ee685aeg5ea57b61a4caab65@mail.gmail.com> <1c4dc2780911110444j592fbb84ua0d6aa94521d6bfc@mail.gmail.com> <1c4dc2780911110736i1ab47ca3ke10ee1d3e5e52eac@mail.gmail.com> Message-ID: <1c4dc2780911120005j6c7c24a7id147b7418616dda0@mail.gmail.com> Did the Godfather quote scare you off? :) On Wed, Nov 11, 2009 at 9:06 PM, Roshan Mathews wrote: > I [shall carefully reply to] you because I had > [searched my mail and found] that you were a serious > man, to be treated with respect. But I must say no to > you and let me give you my reasons. It's true I have a > lot of friends in [software], but they wouldn't be so > friendly if they knew my business was [pontificating] > instead of [flaming] which they consider a harmless > vice. But [pontification], that's a dirty business. > > On Wed, Nov 11, 2009 at 7:49 PM, Harish Mallipeddi > wrote: -- Roshan Mathews http://teamtalk.im From murty_murty at yahoo.com Thu Nov 12 09:29:31 2009 From: murty_murty at yahoo.com (M.V.Ramana Murty) Date: Thu, 12 Nov 2009 00:29:31 -0800 (PST) Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <9963e56e0911112324u1718632bh8bea2c20076f4cc0@mail.gmail.com> Message-ID: <199872.12172.qm@web52106.mail.re2.yahoo.com> for windows only .... pyscipter is a good options, at least for the beginners... Thanks and Regards MVR.Murty, --- On Thu, 11/12/09, Noufal Ibrahim wrote: From: Noufal Ibrahim Subject: Re: [BangPypers] Best Python IDE with compiler To: "Bangalore Python Users Group - India" Date: Thursday, November 12, 2009, 12:54 PM On Thu, Nov 12, 2009 at 12:25 PM, R Gopinath wrote: > Hi, > I hope all the people here are ?my forefathers and experts in python. please > suggest me a good IDE for python which can point out syntax errors while > typind and also able to complie and produce output. There are a couple of Python-only IDEs out there which might work for you. Eric, Idle, SPE are 3 that come to mind. I'm sure that bigger ones like Eclipse have Python plugins as well. I use Emacs + a couple of external things and it works for me. I had a link describing some useful customisations but it seems that delicious is down so I don't have it right now. -- ~noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From kausikram at gmail.com Thu Nov 12 10:00:10 2009 From: kausikram at gmail.com (kausikram krishnasayee) Date: Thu, 12 Nov 2009 14:30:10 +0530 Subject: [BangPypers] Python place holder doubt In-Reply-To: References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> Message-ID: <2597ddb90911120100i654da46br74a90acc9511d710@mail.gmail.com> > > 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,) -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: chaosbudha.blogspot.com | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From scorpion032 at gmail.com Thu Nov 12 10:03:37 2009 From: scorpion032 at gmail.com (Lakshman Prasad) Date: Thu, 12 Nov 2009 14:33:37 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <199872.12172.qm@web52106.mail.re2.yahoo.com> References: <9963e56e0911112324u1718632bh8bea2c20076f4cc0@mail.gmail.com> <199872.12172.qm@web52106.mail.re2.yahoo.com> Message-ID: I am a happy WingIDE Professional customer. It is simply the best IDE for Python today. Plus it has VI mode, that I like, and a lot of other features, some of it I have described here: http://stackoverflow.com/questions/81584/what-ide-to-use-for-python/495355#495355 On Thu, Nov 12, 2009 at 1:59 PM, M.V.Ramana Murty wrote: > for windows only .... pyscipter is a good options, at least for the > beginners... > > Thanks and Regards > > MVR.Murty, > > --- On Thu, 11/12/09, Noufal Ibrahim wrote: > > From: Noufal Ibrahim > Subject: Re: [BangPypers] Best Python IDE with compiler > To: "Bangalore Python Users Group - India" > Date: Thursday, November 12, 2009, 12:54 PM > > On Thu, Nov 12, 2009 at 12:25 PM, R Gopinath > wrote: > > Hi, > > I hope all the people here are my forefathers and experts in python. > please > > suggest me a good IDE for python which can point out syntax errors while > > typind and also able to complie and produce output. > > There are a couple of Python-only IDEs out there which might work for > you. Eric, Idle, SPE are 3 that come to mind. I'm sure that bigger > ones like Eclipse have Python plugins as well. > > I use Emacs + a couple of external things and it works for me. I had a > link describing some useful customisations but it seems that delicious > is down so I don't have it right now. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Lakshman becomingguru.com lakshmanprasad.com From ramp99 at gmail.com Thu Nov 12 10:08:44 2009 From: ramp99 at gmail.com (Rama Rao Polneni) Date: Thu, 12 Nov 2009 14:38:44 +0530 Subject: [BangPypers] WxPython : List box In-Reply-To: <200911121031.21445.lawgon@au-kbc.org> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> <242b6e1badd3174ba15d07da6f5a706a@preisshare.net> <9a8a0e230911112042i3b517d20t8784e7a4f1aeed1d@mail.gmail.com> <200911121031.21445.lawgon@au-kbc.org> Message-ID: <9a8a0e230911120108g5b66a495t7c80ff8f1a9b1bc4@mail.gmail.com> Hi, I could read all the elements by using self.listbox.GetItems() Only vertical scrollbar is coming by default Thanks, Rama Rao On 11/12/09, Kenneth Gonsalves wrote: > > On Thursday 12 Nov 2009 10:12:43 am Rama Rao Polneni wrote: > > 1. Reading all elements from from listbox. Currently I am able to read > only > > selected files. > > what do you mean by 'read all the elements' > > 2. Displaying scrollbar. I dont know how to display scrollbar. > > > > afaik both vertical and horizontal scrollbars appear by default if the > matter > is bigger than the size of the list box > > -- > regards > Kenneth Gonsalves > Senior Project Officer > NRC-FOSS > http://nrcfosshelpline.in/web/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ramp99 at gmail.com Thu Nov 12 10:19:26 2009 From: ramp99 at gmail.com (Rama Rao Polneni) Date: Thu, 12 Nov 2009 14:49:26 +0530 Subject: [BangPypers] WxPython : List box In-Reply-To: <9a8a0e230911120108g5b66a495t7c80ff8f1a9b1bc4@mail.gmail.com> References: <9a8a0e230911112026k75857e62s7325435220ad8b26@mail.gmail.com> <242b6e1badd3174ba15d07da6f5a706a@preisshare.net> <9a8a0e230911112042i3b517d20t8784e7a4f1aeed1d@mail.gmail.com> <200911121031.21445.lawgon@au-kbc.org> <9a8a0e230911120108g5b66a495t7c80ff8f1a9b1bc4@mail.gmail.com> Message-ID: <9a8a0e230911120119v2d1794u6ee1bad9364f9c12@mail.gmail.com> Here is the solution. On setting style as wx.HSCROLL. horizontal scrollbar appears. Thanks, On 11/12/09, Rama Rao Polneni wrote: > > Hi, > > I could read all the elements by using self.listbox.GetItems() > > Only vertical scrollbar is coming by default > > Thanks, > Rama Rao > > On 11/12/09, Kenneth Gonsalves wrote: >> >> On Thursday 12 Nov 2009 10:12:43 am Rama Rao Polneni wrote: >> > 1. Reading all elements from from listbox. Currently I am able to read >> only >> > selected files. >> >> what do you mean by 'read all the elements' >> > 2. Displaying scrollbar. I dont know how to display scrollbar. >> > >> >> afaik both vertical and horizontal scrollbars appear by default if the >> matter >> is bigger than the size of the list box >> >> -- >> regards >> Kenneth Gonsalves >> Senior Project Officer >> NRC-FOSS >> http://nrcfosshelpline.in/web/ >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > From aravind.geek at gmail.com Thu Nov 12 10:21:04 2009 From: aravind.geek at gmail.com (Aravind Muthu) Date: Thu, 12 Nov 2009 14:51:04 +0530 Subject: [BangPypers] Python place holder doubt In-Reply-To: <2597ddb90911120100i654da46br74a90acc9511d710@mail.gmail.com> References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> <2597ddb90911120100i654da46br74a90acc9511d710@mail.gmail.com> Message-ID: 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 should either be > final = "pmid=%d" %(d,) + "&tag=ntag&type=ge" > > or final=("pmid=%d" + "&tag=ntag&type=ge") %(d,) > -- > Kausikram Krishnasayee > Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: > chaosbudha.blogspot.com | Twitter: http://twitter.com/kausikram | Email: > kausikram at gmail.com | Mobile: +91 9884246490 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From aravind.geek at gmail.com Thu Nov 12 10:28:50 2009 From: aravind.geek at gmail.com (Aravind Muthu) Date: Thu, 12 Nov 2009 14:58:50 +0530 Subject: [BangPypers] Python place holder doubt In-Reply-To: References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> <2597ddb90911120100i654da46br74a90acc9511d710@mail.gmail.com> Message-ID: 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.......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 should either be >> final = "pmid=%d" %(d,) + "&tag=ntag&type=ge" >> >> or final=("pmid=%d" + "&tag=ntag&type=ge") %(d,) >> -- >> Kausikram Krishnasayee >> Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: >> chaosbudha.blogspot.com | Twitter: http://twitter.com/kausikram | Email: >> kausikram at gmail.com | Mobile: +91 9884246490 >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > From siddharta.lists at gmail.com Thu Nov 12 11:08:27 2009 From: siddharta.lists at gmail.com (Siddharta) Date: Thu, 12 Nov 2009 15:38:27 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> Message-ID: <4AFBDE9B.30304@gmail.com> R Gopinath wrote: > Hi, > I hope all the people here are my forefathers and experts in python. please > suggest me a good IDE for python which can point out syntax errors while > typind and also able to complie and produce output. > > I love the Wing IDE. It's a paid product though - http://www.wingware.com/ -- Siddharta Govindaraj From noufal at gmail.com Thu Nov 12 11:26:58 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 12 Nov 2009 15:56:58 +0530 Subject: [BangPypers] BangPypers monthly meetup. Message-ID: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> Shall we fix this for 22nd then? Is TW the venue? What time? On Wed, Nov 11, 2009 at 12:13 PM, Sriram Narayanan wrote: > On Wed, Nov 11, 2009 at 12:03 PM, Noufal Ibrahim wrote: >> +1 for 22nd. >> > > +1 > > -- Sriram > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Thu Nov 12 14:06:26 2009 From: pradeep at btbytes.com (Pradeep Gowda) Date: Thu, 12 Nov 2009 08:06:26 -0500 Subject: [BangPypers] Python place holder doubt In-Reply-To: References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> Message-ID: <3e3294b70911120506t2cc7024bvd91ef3ff0bd267e1@mail.gmail.com> 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 the end of the line? PS: If you are not sure about the solution working you are not obligated to reply to the mail. (it takes less than 30 seconds to verify your solution in a python console, which I did), From sridhar.ratna at gmail.com Thu Nov 12 15:34:55 2009 From: sridhar.ratna at gmail.com (srid) Date: Thu, 12 Nov 2009 06:34:55 -0800 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> Message-ID: <7c73a13a0911120634v67c7dffdjd92908518edb2feb@mail.gmail.com> On Wed, Nov 11, 2009 at 10:55 PM, R Gopinath wrote: > Hi, > I hope all the people here are ?my forefathers and experts in python. please > suggest me a good IDE for python which can point out syntax errors while > typind and also able to complie and produce output. http://stackoverflow.com/questions/81584/what-ide-to-use-for-python The code 'EM' stands for "syntax errors while typing". I use Komodo w/ Vim keybindings[1], but it does not highlight syntax errors yet. -srid *** [1] So long Emacs... From sriramnrn at gmail.com Thu Nov 12 16:24:19 2009 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Thu, 12 Nov 2009 20:54:19 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> References: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> Message-ID: <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> On Thu, Nov 12, 2009 at 3:56 PM, Noufal Ibrahim wrote: > Shall we fix this for 22nd then? Is TW the venue? What time? > Seems OK to me. Let's have Mahadevan decide on the time. -- Sriram From aravind.geek at gmail.com Thu Nov 12 19:41:02 2009 From: aravind.geek at gmail.com (Aravind Muthu) Date: Fri, 13 Nov 2009 00:11:02 +0530 Subject: [BangPypers] Python place holder doubt In-Reply-To: <3e3294b70911120506t2cc7024bvd91ef3ff0bd267e1@mail.gmail.com> References: <3e3294b70911111011m43a38015n1d32b81414d7c6b6@mail.gmail.com> <3e3294b70911120506t2cc7024bvd91ef3ff0bd267e1@mail.gmail.com> Message-ID: 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 errors in the second line > 1. what is =+ ? > 2. and what is the purpose of %d at the end of the line? > > PS: If you are not sure about the solution working you are not > obligated to reply to the mail. > (it takes less than 30 seconds to verify your solution in a python > console, which I did), > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Fri Nov 13 06:42:05 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 13 Nov 2009 11:12:05 +0530 Subject: [BangPypers] Python moratorium Message-ID: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> A.M. Kuchling has published an article related to this on LWN. This has been under discussion in Pydev for a couple of weeks now... It would be interesting to know the opinion of folks here on this... http://lwn.net/SubscriberLink/361266/ef88bdbed5369800/ Here is the related PEP link. http://www.python.org/dev/peps/pep-3003/ Regards, -- --Anand From abpillai at gmail.com Fri Nov 13 06:44:16 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 13 Nov 2009 11:14:16 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> References: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> Message-ID: <8548c5f30911122144t2e815e3ak908825ee23b2b297@mail.gmail.com> On Thu, Nov 12, 2009 at 8:54 PM, Sriram Narayanan wrote: > On Thu, Nov 12, 2009 at 3:56 PM, Noufal Ibrahim wrote: > > Shall we fix this for 22nd then? Is TW the venue? What time? > > > > +1 for 22nd. > Seems OK to me. Let's have Mahadevan decide on the time. > > -- Sriram > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at thenilgiris.com Fri Nov 13 06:46:33 2009 From: lawgon at thenilgiris.com (Kenneth Gonsalves) Date: Fri, 13 Nov 2009 11:16:33 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> Message-ID: <200911131116.33779.lawgon@thenilgiris.com> On Friday 13 Nov 2009 11:12:05 am Anand Balachandran Pillai wrote: > A.M. Kuchling has published an article related to this on LWN. > This has been under discussion in Pydev for a couple of weeks now... > > It would be interesting to know the opinion of folks here on this... > > http://lwn.net/SubscriberLink/361266/ef88bdbed5369800/ > great idea - racing along to play catch-up gets tiring after a while. -- regards kg http://lawgon.livejournal.com From noufal at gmail.com Fri Nov 13 06:50:26 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 13 Nov 2009 11:20:26 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> Message-ID: <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> On Fri, Nov 13, 2009 at 11:12 AM, Anand Balachandran Pillai wrote: > A.M. Kuchling has published an article related to this on LWN. > This has been under discussion in Pydev for a couple of weeks now... > > It would be interesting to know the opinion of folks here on this...[..] I've been following the discussion. I think it's eminently sensible. -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Fri Nov 13 07:20:32 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 13 Nov 2009 11:50:32 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> Message-ID: <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> On Fri, Nov 13, 2009 at 11:20 AM, Noufal Ibrahim wrote: > On Fri, Nov 13, 2009 at 11:12 AM, Anand Balachandran Pillai > wrote: > > A.M. Kuchling has published an article related to this on LWN. > > This has been under discussion in Pydev for a couple of weeks now... > > > > It would be interesting to know the opinion of folks here on this...[..] > > I've been following the discussion. I think it's eminently sensible. > I also thought so. More than the catching up part, I think perhaps Guido is worried about widespread Python 3.x adoption. This will help a lot in that direction. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Fri Nov 13 07:27:31 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 13 Nov 2009 11:57:31 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> Message-ID: <200911131157.31926.lawgon@au-kbc.org> On Friday 13 Nov 2009 11:50:32 am Anand Balachandran Pillai wrote: > > > It would be interesting to know the opinion of folks here on > > > this...[..] > > > > I've been following the discussion. I think it's eminently sensible. > > I also thought so. More than the catching up part, I think perhaps > Guido is worried about widespread Python 3.x adoption. This will > help a lot in that direction. > I am a fairly typical enduser of python, and basically I am still slowly migrating to 2.5 (which is now getting available on production servers). So we are happy that there is a pause. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From noufal at gmail.com Fri Nov 13 07:30:46 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 13 Nov 2009 12:00:46 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> Message-ID: <9963e56e0911122230n39085421wa65c6254e8a56bf6@mail.gmail.com> On Fri, Nov 13, 2009 at 11:50 AM, Anand Balachandran Pillai wrote: > On Fri, Nov 13, 2009 at 11:20 AM, Noufal Ibrahim wrote: > >> On Fri, Nov 13, 2009 at 11:12 AM, Anand Balachandran Pillai >> wrote: >> > A.M. Kuchling has published an article related to this on LWN. >> > This has been under discussion in Pydev for a couple of weeks now... >> > >> > It would be interesting to know the opinion of folks here on this...[..] >> >> I've been following the discussion. I think it's eminently sensible. >> > > ?I also thought so. More than the catching up part, I think perhaps > ?Guido is worried about widespread Python 3.x adoption. This will > ?help a lot in that direction. Unladen Swallow is a serious cog in the works as far as Python 3 is concerned. I expect the speed boosts to be significant and they're targetting the 2.x releases. If a public release candidate is ready, it's a solid argument to *not* migrate to 3.0. I'd love for the changes to be ported to 3.0 but have no idea of how much work or what kind is involved which is why I'm itching to have Mahadevan speak this next Sunday. :) -- ~noufal http://nibrahim.net.in From mdevan.foobar at gmail.com Fri Nov 13 07:51:42 2009 From: mdevan.foobar at gmail.com (Mahadevan R) Date: Fri, 13 Nov 2009 12:21:42 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> References: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> Message-ID: On Thu, Nov 12, 2009 at 8:54 PM, Sriram Narayanan wrote: > On Thu, Nov 12, 2009 at 3:56 PM, Noufal Ibrahim wrote: >> Shall we fix this for 22nd then? Is TW the venue? What time? >> > > Seems OK to me. Let's have Mahadevan decide on the time. Is evening OK? Around 4.00? Regards, -Mahadevan. From noufal at gmail.com Fri Nov 13 07:53:17 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 13 Nov 2009 12:23:17 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: References: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> Message-ID: <9963e56e0911122253h78ccfc13l14ab6d6f68964675@mail.gmail.com> On Fri, Nov 13, 2009 at 12:21 PM, Mahadevan R wrote: > On Thu, Nov 12, 2009 at 8:54 PM, Sriram Narayanan wrote: >> On Thu, Nov 12, 2009 at 3:56 PM, Noufal Ibrahim wrote: >>> Shall we fix this for 22nd then? Is TW the venue? What time? >>> >> >> Seems OK to me. Let's have Mahadevan decide on the time. > > Is evening OK? Around 4.00? Fine by me. -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Fri Nov 13 09:45:42 2009 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Fri, 13 Nov 2009 14:15:42 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: References: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> Message-ID: <3d62196a0911130045t5903a350j5122a62ff377f700@mail.gmail.com> On Fri, Nov 13, 2009 at 12:21 PM, Mahadevan R wrote: > On Thu, Nov 12, 2009 at 8:54 PM, Sriram Narayanan > wrote: > > On Thu, Nov 12, 2009 at 3:56 PM, Noufal Ibrahim > wrote: > >> Shall we fix this for 22nd then? Is TW the venue? What time? > >> > > > > Seems OK to me. Let's have Mahadevan decide on the time. > > >Is evening OK? Around 4.00? > Yes that's fine. From ideamonk at gmail.com Fri Nov 13 15:49:15 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Fri, 13 Nov 2009 20:19:15 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <7c73a13a0911120634v67c7dffdjd92908518edb2feb@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> <7c73a13a0911120634v67c7dffdjd92908518edb2feb@mail.gmail.com> Message-ID: <64160c70911130649h748f6602i569c5a0c28ce91ec@mail.gmail.com> I used to use gedit (http://twitpic.com/e80j6) before, it has some nice plugins to make it python friendly, like auto completion, indentation, run at a hit of f5, better python console, etc. Then you got eclipse pydev plugin which gives you everything you could think of. bpython, not an ide, but comes as a nice interpreter if you're looking on the spot help popup and auto-completion in interpreter itself. While vim too can be customized nicely using pydiction, NERDtree(http://twitpic.com/fnopf) etc to suit Python. http://twitpic.com/fnsvb I haven't come across something which points out syntax errors while typing. vim does it for html, but has anyone come across this feature? do let me know too. regards, Abhishek Mishra From ideamonk at gmail.com Fri Nov 13 15:51:21 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Fri, 13 Nov 2009 20:21:21 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <7c73a13a0911120634v67c7dffdjd92908518edb2feb@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> <7c73a13a0911120634v67c7dffdjd92908518edb2feb@mail.gmail.com> Message-ID: <64160c70911130651x1af3fc59ma829cd605c3c2f4a@mail.gmail.com> > http://stackoverflow.com/questions/81584/what-ide-to-use-for-python > > The code 'EM' stands for "syntax errors while typing". > > > -srid > Oh, that's a pretty useful list, will try out EM ones. Thanks From noufal at gmail.com Fri Nov 13 19:16:34 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 13 Nov 2009 23:46:34 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <64160c70911130649h748f6602i569c5a0c28ce91ec@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> <7c73a13a0911120634v67c7dffdjd92908518edb2feb@mail.gmail.com> <64160c70911130649h748f6602i569c5a0c28ce91ec@mail.gmail.com> Message-ID: <9963e56e0911131016u3097240cp17116380378945cd@mail.gmail.com> On Fri, Nov 13, 2009 at 8:19 PM, Abhishek Mishra wrote: [..] > I haven't come across something which points out syntax errors while > typing. vim does it for html, but has anyone come across this feature? > do let me know too.[..] Emacs with flymake and pyflakes does this http://twitpic.com/pdcy6 -- ~noufal http://nibrahim.net.in From anand.shashwat at gmail.com Fri Nov 13 23:21:50 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 14 Nov 2009 03:51:50 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <9963e56e0911122230n39085421wa65c6254e8a56bf6@mail.gmail.com> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> <9963e56e0911122230n39085421wa65c6254e8a56bf6@mail.gmail.com> Message-ID: Python widespread adoption is better idea. It's good to have a newer version arrive after a gap, so we can play catchup game. I hadn't still migrated to 3 though, still stuck with 2.6.2. The reason is same as everyone else. On Fri, Nov 13, 2009 at 12:00 PM, Noufal Ibrahim wrote: > On Fri, Nov 13, 2009 at 11:50 AM, Anand Balachandran Pillai > wrote: > > On Fri, Nov 13, 2009 at 11:20 AM, Noufal Ibrahim > wrote: > > > >> On Fri, Nov 13, 2009 at 11:12 AM, Anand Balachandran Pillai > >> wrote: > >> > A.M. Kuchling has published an article related to this on LWN. > >> > This has been under discussion in Pydev for a couple of weeks now... > >> > > >> > It would be interesting to know the opinion of folks here on > this...[..] > >> > >> I've been following the discussion. I think it's eminently sensible. > >> > > > > I also thought so. More than the catching up part, I think perhaps > > Guido is worried about widespread Python 3.x adoption. This will > > help a lot in that direction. > > Unladen Swallow is a serious cog in the works as far as Python 3 is > concerned. I expect the speed boosts to be significant and they're > targetting the 2.x releases. If a public release candidate is ready, > it's a solid argument to *not* migrate to 3.0. I'd love for the > changes to be ported to 3.0 but have no idea of how much work or what > kind is involved which is why I'm itching to have Mahadevan speak this > next Sunday. :) > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anand.shashwat at gmail.com Fri Nov 13 23:31:46 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sat, 14 Nov 2009 04:01:46 +0530 Subject: [BangPypers] SPOJ: Kamil -> Code Golf Message-ID: I was doing a problem KAMIL : https://www.spoj.pl/problems/KAMIL/ and the shortest version i came up with was : >>> for i in range(10):t=raw_input();print 2**sum(t.count(i)for i in'DFLT') This is 71 character long. >>> s = "for i in range(10):t=raw_input();print 2**sum(t.count(i)for i in'DFLT')" >>> len(s) 71 However the best solutions in python ( https://www.spoj.pl/ranks/KAMIL/lang=PYTH%202.5 ) shows that it can be reduced to 53 character long. Do anyone here had solved this problem or have an idea as to how to shorten the code any more ? I'm still clueless. From noufal at gmail.com Sat Nov 14 05:30:36 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 14 Nov 2009 10:00:36 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <200911131157.31926.lawgon@au-kbc.org> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> <200911131157.31926.lawgon@au-kbc.org> Message-ID: <9963e56e0911132030y410a85e0rd841342f54d54774@mail.gmail.com> On Fri, Nov 13, 2009 at 11:57 AM, Kenneth Gonsalves wrote: [..] > I am a fairly typical enduser of python, and basically I am still slowly > migrating to 2.5 (which is now getting available on production servers). So we > are happy that there is a pause.[..] The moratorium is only on the language core (syntax and semantics). The standard libraries will still be altered and that'd be the kind of difference between the various 2.x releases you're facing. -- ~noufal http://nibrahim.net.in From sidharth.kuruvila at gmail.com Sat Nov 14 06:28:30 2009 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Sat, 14 Nov 2009 10:58:30 +0530 Subject: [BangPypers] Python moratorium In-Reply-To: <9963e56e0911132030y410a85e0rd841342f54d54774@mail.gmail.com> References: <8548c5f30911122142k23098124h1c1b2ec47558f935@mail.gmail.com> <9963e56e0911122150n3f01b837uef79a038f250e7f9@mail.gmail.com> <8548c5f30911122220p6f535036p14bc9bac951dc0cc@mail.gmail.com> <200911131157.31926.lawgon@au-kbc.org> <9963e56e0911132030y410a85e0rd841342f54d54774@mail.gmail.com> Message-ID: <2ab2ed550911132128k744fd788g437aac190fd91440@mail.gmail.com> This is to allow the alternate implementations to catch up, and not really about the users of the python language. Adding breaking changes between versions of python 3 would just be bad language design, so users should be fine either way. I've found myself quite happy using many of the new features that were added to python over the years. I'll certainly miss that. From ideamonk at gmail.com Sun Nov 15 07:28:19 2009 From: ideamonk at gmail.com (Abhishek Mishra) Date: Sun, 15 Nov 2009 11:58:19 +0530 Subject: [BangPypers] SPOJ: Kamil -> Code Golf In-Reply-To: References: Message-ID: <64160c70911142228q1e4156f6h6dc5ac39704f039@mail.gmail.com> I tried a lot, I give up. But I noticed this, if 'foo'.count (sub, [start, end]) allowed us to place a regexp in place of sub, we could've shortened it. But unfortunately we need to import re and compile one before using. So achieving something like foo = 'FILIPEK' q=1;foo.gsub(/[DTFL]/){q*=2} p q} is not possible. In the above ruby code mainly gsub and 'p' as a shorthand for print is helping out. Python is really made for writing readable code :P The quest for 53 bytes py code is still on. regards, Abhishek Mishra From anand.shashwat at gmail.com Sun Nov 15 07:44:03 2009 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Sun, 15 Nov 2009 12:14:03 +0530 Subject: [BangPypers] SPOJ: Kamil -> Code Golf In-Reply-To: <64160c70911142228q1e4156f6h6dc5ac39704f039@mail.gmail.com> References: <64160c70911142228q1e4156f6h6dc5ac39704f039@mail.gmail.com> Message-ID: I left it. Will try again someday, the quest for perfection or should I say 53 chars should last by then :) On Sun, Nov 15, 2009 at 11:58 AM, Abhishek Mishra wrote: > I tried a lot, I give up. But I noticed this, > > if 'foo'.count (sub, [start, end]) > allowed us to place a regexp in place of sub, we could've shortened it. > But unfortunately we need to import re and compile one before using. > > So achieving something like > foo = 'FILIPEK' > q=1;foo.gsub(/[DTFL]/){q*=2} p q} > > is not possible. In the above ruby code mainly gsub and 'p' as a > shorthand for print is helping out. > > Python is really made for writing readable code :P > The quest for 53 bytes py code is still on. > > regards, > Abhishek Mishra > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Mon Nov 16 08:04:54 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 16 Nov 2009 12:34:54 +0530 Subject: [BangPypers] Drupal vs. Django Message-ID: <9963e56e0911152304s31631702t5ad498b2109b9782@mail.gmail.com> We had a thread a while ago inspired by the fossee.in site. I came across this http://birdhouse.org/blog/2009/11/11/drupal-or-django/ which is relevant to the issue and which might interest people who have to make a decision. -- ~noufal http://nibrahim.net.in From ramdaz at gmail.com Mon Nov 16 08:12:32 2009 From: ramdaz at gmail.com (Ramdas S) Date: Mon, 16 Nov 2009 12:42:32 +0530 Subject: [BangPypers] Drupal vs. Django In-Reply-To: <9963e56e0911152304s31631702t5ad498b2109b9782@mail.gmail.com> References: <9963e56e0911152304s31631702t5ad498b2109b9782@mail.gmail.com> Message-ID: <6e38f9f00911152312p69f2dacds3d1de1ba3c08abf3@mail.gmail.com> On Mon, Nov 16, 2009 at 12:34 PM, Noufal Ibrahim wrote: > We had a thread a while ago inspired by the fossee.in site. I came > across this http://birdhouse.org/blog/2009/11/11/drupal-or-django/ > which is relevant to the issue and which might interest people who > have to make a decision. > We've had a thread last 2 days on django-users with our own Kenneth raising some observations, even that's worth following. Nice link Thanks > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From vsapre80 at gmail.com Mon Nov 16 09:36:09 2009 From: vsapre80 at gmail.com (Vishal) Date: Mon, 16 Nov 2009 14:06:09 +0530 Subject: [BangPypers] Best Python IDE with compiler In-Reply-To: <9963e56e0911131016u3097240cp17116380378945cd@mail.gmail.com> References: <7459cc990911112255q5b4706e4la602ab7c72234730@mail.gmail.com> <7c73a13a0911120634v67c7dffdjd92908518edb2feb@mail.gmail.com> <64160c70911130649h748f6602i569c5a0c28ce91ec@mail.gmail.com> <9963e56e0911131016u3097240cp17116380378945cd@mail.gmail.com> Message-ID: When you are on Windows...I would suggest everyone to consider PyScripter as well. Its got almost everything and is a standalone thing about 5MB in size. Vishal On Fri, Nov 13, 2009 at 11:46 PM, Noufal Ibrahim wrote: > On Fri, Nov 13, 2009 at 8:19 PM, Abhishek Mishra > wrote: > [..] > > I haven't come across something which points out syntax errors while > > typing. vim does it for html, but has anyone come across this feature? > > do let me know too.[..] > > Emacs with flymake and pyflakes does this > http://twitpic.com/pdcy6 > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "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" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." From lorddaemon at gmail.com Mon Nov 16 09:58:09 2009 From: lorddaemon at gmail.com (Darkseid) Date: Mon, 16 Nov 2009 14:28:09 +0530 Subject: [BangPypers] An interesting REST library Message-ID: <4B011421.3020805@gmail.com> Hey all, I'm posting this here since I figure that y'all would be interested in REST on any dynlang. This is a Ruby library, but it looks like its been done right. http://github.com/caelum/restfulie Thoughts? Best, Sidu. From abpillai at gmail.com Mon Nov 16 10:20:54 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 16 Nov 2009 14:50:54 +0530 Subject: [BangPypers] Drupal vs. Django In-Reply-To: <6e38f9f00911152312p69f2dacds3d1de1ba3c08abf3@mail.gmail.com> References: <9963e56e0911152304s31631702t5ad498b2109b9782@mail.gmail.com> <6e38f9f00911152312p69f2dacds3d1de1ba3c08abf3@mail.gmail.com> Message-ID: <8548c5f30911160120n292c40d5vea6744509d154d98@mail.gmail.com> On Mon, Nov 16, 2009 at 12:42 PM, Ramdas S wrote: > On Mon, Nov 16, 2009 at 12:34 PM, Noufal Ibrahim wrote: > > > We had a thread a while ago inspired by the fossee.in site. I came > > across this http://birdhouse.org/blog/2009/11/11/drupal-or-django/ > > which is relevant to the issue and which might interest people who > > have to make a decision. > > > Nice link, I have been reading it plus comments since you posted it. I found this gem somewhere down the page. "Some attack vectors, like SQL injection (and other input sanitization exploits) are pretty much eliminated by Python?s DB API and Django?s ORM and Form validation tools. This is not to say you couldn?t create an exploit in a Django app, but that you?d have to be trying to on purpose". I remember I had made a similar point in that thread when it came to Python vs PHP on security. This is exactly the point I wanted to make. > > > > We've had a thread last 2 days on django-users with our own Kenneth raising > some observations, even that's worth following. > > Nice link Thanks > > > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Ramdas S > +91 9342 583 065 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Mon Nov 16 10:23:44 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 16 Nov 2009 14:53:44 +0530 Subject: [BangPypers] Drupal vs. Django In-Reply-To: <8548c5f30911160120n292c40d5vea6744509d154d98@mail.gmail.com> References: <9963e56e0911152304s31631702t5ad498b2109b9782@mail.gmail.com> <6e38f9f00911152312p69f2dacds3d1de1ba3c08abf3@mail.gmail.com> <8548c5f30911160120n292c40d5vea6744509d154d98@mail.gmail.com> Message-ID: <8548c5f30911160123v58416b84r3ec1ecc1e314a3e1@mail.gmail.com> On Mon, Nov 16, 2009 at 2:50 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > > On Mon, Nov 16, 2009 at 12:42 PM, Ramdas S wrote: > >> On Mon, Nov 16, 2009 at 12:34 PM, Noufal Ibrahim >> wrote: >> >> > We had a thread a while ago inspired by the fossee.in site. I came >> > across this http://birdhouse.org/blog/2009/11/11/drupal-or-django/ >> > which is relevant to the issue and which might interest people who >> > have to make a decision. >> > >> > > Nice link, I have been reading it plus comments since you posted it. > I found this gem somewhere down the page. > > "Some attack vectors, like SQL injection (and other input sanitization > exploits) are pretty much eliminated by Python?s DB API and Django?s ORM and > Form validation tools. This is not to say you couldn?t create an exploit in > a Django app, but that you?d have to be trying to on purpose". > > I remember I had made a similar point in that thread when it came to > Python vs PHP on security. This is exactly the point I wanted to make. > Sorry to post again, but here is the entire context. Security. Django makes a lot of design decisions that make it hard to write insecure code. Not impossible, but hard. Some attack vectors, like SQL injection (and other input sanitization exploits) are pretty much eliminated by Python?s DB API and Django?s ORM and Form validation tools. This is not to say you couldn?t create an exploit in a Django app, but that you?d have to be trying to on purpose. They also give you tools to prevent CSRF which were optional, but in newer releases are being promoted to ?required? in contrib.admin at least ( http://docs.djangoproject.com/en/dev/ref/contrib/csrf/ ) One of PHPs biggest failings re: security , IMHO, is they made it too easy to do the wrong thing for far too long. This is improving, but I think you still see this lax approach reflected in the large number of Drupal exploits that have appeared and in the way many people don?t seem to take security as seriously in the PHP universe. > > >> >> >> >> We've had a thread last 2 days on django-users with our own Kenneth >> raising >> some observations, even that's worth following. >> >> Nice link Thanks >> >> >> > ~noufal >> > http://nibrahim.net.in >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> >> -- >> Ramdas S >> +91 9342 583 065 >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > > > > -- --Anand From noufal at gmail.com Mon Nov 16 10:44:05 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 16 Nov 2009 15:14:05 +0530 Subject: [BangPypers] Drupal vs. Django In-Reply-To: <8548c5f30911160120n292c40d5vea6744509d154d98@mail.gmail.com> References: <9963e56e0911152304s31631702t5ad498b2109b9782@mail.gmail.com> <6e38f9f00911152312p69f2dacds3d1de1ba3c08abf3@mail.gmail.com> <8548c5f30911160120n292c40d5vea6744509d154d98@mail.gmail.com> Message-ID: <9963e56e0911160144m44417d94k2f70c2e75759d812@mail.gmail.com> On Mon, Nov 16, 2009 at 2:50 PM, Anand Balachandran Pillai wrote: > On Mon, Nov 16, 2009 at 12:42 PM, Ramdas S wrote: > >> On Mon, Nov 16, 2009 at 12:34 PM, Noufal Ibrahim wrote: >> >> > We had a thread a while ago inspired by the fossee.in site. I came >> > across this http://birdhouse.org/blog/2009/11/11/drupal-or-django/ >> > which is relevant to the issue and which might interest people who >> > have to make a decision. >> > >> > > Nice link, I have been reading it plus comments since you posted it. > I found this gem somewhere down the page. > > "Some attack vectors, like SQL injection (and other input sanitization > exploits) are pretty much eliminated by Python?s DB API and Django?s ORM and > Form validation tools. This is not to say you couldn?t create an exploit in > a Django app, but that you?d have to be trying to on purpose". > > I remember I had made a similar point in that thread when it came to > Python vs PHP on security. This is exactly the point I wanted to make.[..] Yes but IIRC your argument was a Python vs. PHP one rather than the applications (Django vs. Drupal). It's perfectly possible and equally easy to write SQL injection exploitable code in Python if you're using the raw DBAPI (I've done it when I wrote my first database interacting app [python and PHP] and didn't know anything about sanitising inputs). All you have to do is to + some strings together with unsanitised inputs and run them. This is the way you do it on Python and PHP if you go down to the API level. With higher level libraries like ORMs (and I'm sure there are decent ones for PHP as well), it will take care of the nitty gritty and you'll be clean. So, *on the language front* atleast with respect to *writing bad SQL queries*, I think both the languages are somewhat equal unless I'm totally missing a subtle point you're making. Coming to the application side of things (Drupal vs. Django), if the former doesn't use an ORM or any other library that automatically sanitises SQL queries to it, it's a +1 for the latter. As for the CSRF points he's making, I'm not knowledgeable enough to comment but what he says looks correct and I think it's a +1 for Django. Your point though, about the general ugliness of PHP and it's ad hoc nature is perfectly valid and my reason for not using it voluntarily anymore. Python is much cleaner and will encourage better code. *My* point is that if you only take the question of SQL injection while using only the raw DB API, both the languages fare similarly. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Nov 16 10:47:54 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 16 Nov 2009 15:17:54 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <3d62196a0911130045t5903a350j5122a62ff377f700@mail.gmail.com> References: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> <3d62196a0911130045t5903a350j5122a62ff377f700@mail.gmail.com> Message-ID: <9963e56e0911160147k52848112ya0c1d5b2918e29da@mail.gmail.com> So I guess it's settled then. Time : 4:00 pm Date : 22 Nov 2009 Venue : Thought Works, Diamond District. Highlights : Mahadevan's talk on python bindings for llvm Is this okay? P.S. If any of the people attending have the conference recordings, please bring them. Thanks. -- ~noufal http://nibrahim.net.in From mdevan.foobar at gmail.com Mon Nov 16 13:32:05 2009 From: mdevan.foobar at gmail.com (Mahadevan R) Date: Mon, 16 Nov 2009 18:02:05 +0530 Subject: [BangPypers] An interesting REST library In-Reply-To: <4B011421.3020805@gmail.com> References: <4B011421.3020805@gmail.com> Message-ID: On Mon, Nov 16, 2009 at 2:28 PM, Darkseid wrote: > Hey all, > > I'm posting this here since I figure that y'all would be interested in REST > on any dynlang. This is a Ruby library, but it looks like its been done > right. > http://github.com/caelum/restfulie > > Thoughts? Piston [1] does something similar for Django/Python, I think. [1] http://bitbucket.org/jespern/django-piston/wiki/Home Regards, -MD. > > Best, > Sidu. From ranganaths at gmail.com Mon Nov 16 15:53:18 2009 From: ranganaths at gmail.com (Ranganath s) Date: Mon, 16 Nov 2009 20:23:18 +0530 Subject: [BangPypers] import module error Message-ID: <77bb36840911160653r63db0b76j3e17522d47cf4d2@mail.gmail.com> Hi all, i downloaded the dbf module and installed the module using the command "python setup.py install". It was successful. After that i can see dbf.py in the following path /usr/local/lib/python2.6/dist-packages/dbfpy/dbf.py /usr/local/lib/python2.6/dist-packages/dbfpy/dbf.pyc But when i try to import it. Its giving error as follows :- >>> import dbf Traceback (most recent call last): File "", line 1, in ImportError: No module named dbf >>> from dbf import * Traceback (most recent call last): File "", line 1, in ImportError: No module named dbf >>> Can some one tell me where am i going wrong. Thank you Ranganath.S -- I blog at http://ranganaths.wordpress.com From dhananjay.nene at gmail.com Mon Nov 16 20:05:34 2009 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Tue, 17 Nov 2009 00:35:34 +0530 Subject: [BangPypers] import module error In-Reply-To: <77bb36840911160653r63db0b76j3e17522d47cf4d2@mail.gmail.com> References: <77bb36840911160653r63db0b76j3e17522d47cf4d2@mail.gmail.com> Message-ID: This is likely to help http://dbfpy.sourceforge.net/ Note the import statements change based on the version On Mon, Nov 16, 2009 at 8:23 PM, Ranganath s wrote: > Hi all, > > i downloaded the dbf module and installed the module using the > command "python setup.py install". It was successful. After that i can > see > dbf.py in the following path > /usr/local/lib/python2.6/dist-packages/dbfpy/dbf.py > /usr/local/lib/python2.6/dist-packages/dbfpy/dbf.pyc > > But when i try to import it. Its giving error as follows :- > >>> import dbf > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named dbf > >>> from dbf import * > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named dbf > >>> > > Can some one tell me where am i going wrong. > > Thank you > Ranganath.S > > -- > I blog at http://ranganaths.wordpress.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From lawgon at au-kbc.org Tue Nov 17 06:18:12 2009 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 17 Nov 2009 10:48:12 +0530 Subject: [BangPypers] chennaipy meetings Message-ID: <200911171048.12506.lawgon@au-kbc.org> hi, for those of you who are in Chennai, or likely to visit Chennai, you would be pleased to know that chennaipy meets more or less regularly on the 4th saturday of every month. The notice of meeting is usually somewhere here: http://groups.google.com/group/chennaipy/web/meeting-on-28th-november. all bangpypers are most welcome to participate and talk at these meetings. -- regards Kenneth Gonsalves Senior Project Officer NRC-FOSS http://nrcfosshelpline.in/web/ From srinivas_thatiparthy at akebonosoft.com Tue Nov 17 06:31:30 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 17 Nov 2009 11:01:30 +0530 Subject: [BangPypers] [X-Post] How about organizing Hyderabad Python Meetings?? Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CB4827@astserver3.akebonosoft.com> Hello all, Since Bangpypers and ChennaiPy users are organizing weekend/monthly meetings ,It would be nice to organize the same for Hyderabad people also. So Hyderabadis who are in BangPypers and ChennaiPy lists please stand up!!! We can talk something about it. Regards, Srinivas Reddy T ----- You never learn something until you have to write something in it(a programming language), until you have to live and breathe it. It's one thing to go learn a language for fun, but until you write some big, complex system in it,you don't really learn it. ---Brad Fitzpatrick From vsapre80 at gmail.com Tue Nov 17 07:01:54 2009 From: vsapre80 at gmail.com (Vishal) Date: Tue, 17 Nov 2009 11:31:54 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <9963e56e0911160147k52848112ya0c1d5b2918e29da@mail.gmail.com> References: <9963e56e0911120226s4085710fw20ae94c8592e871b@mail.gmail.com> <49977f270911120724i32f228e6p66a8dca9f2fd840@mail.gmail.com> <3d62196a0911130045t5903a350j5122a62ff377f700@mail.gmail.com> <9963e56e0911160147k52848112ya0c1d5b2918e29da@mail.gmail.com> Message-ID: Hi, For all those who cannot attend, is it possible to do a screencast for any demos etc, or post ppt/impress slides somewhere? Unfortunately, not all interested souls would have the chance to attend this important talk. Any help on this would be highly appreciated. Thanks and best regards, Vishal Sapre On Mon, Nov 16, 2009 at 3:17 PM, Noufal Ibrahim wrote: > So I guess it's settled then. > Time : 4:00 pm > Date : 22 Nov 2009 > Venue : Thought Works, Diamond District. > Highlights : Mahadevan's talk on python bindings for llvm > > Is this okay? > > P.S. If any of the people attending have the conference recordings, > please bring them. > > Thanks. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "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" "Diamond is another piece of coal that did well under pressure? "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." From abpillai at gmail.com Tue Nov 17 07:09:12 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 17 Nov 2009 11:39:12 +0530 Subject: [BangPypers] import module error In-Reply-To: <77bb36840911160653r63db0b76j3e17522d47cf4d2@mail.gmail.com> References: <77bb36840911160653r63db0b76j3e17522d47cf4d2@mail.gmail.com> Message-ID: <8548c5f30911162209n5a171bd2pe78c195e40f28d24@mail.gmail.com> On Mon, Nov 16, 2009 at 8:23 PM, Ranganath s wrote: > Hi all, > > i downloaded the dbf module and installed the module using the > command "python setup.py install". It was successful. After that i can > see > dbf.py in the following path > /usr/local/lib/python2.6/dist-packages/dbfpy/dbf.py > /usr/local/lib/python2.6/dist-packages/dbfpy/dbf.pyc > > But when i try to import it. Its giving error as follows :- > >>> import dbf > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named dbf > >>> from dbf import * > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named dbf > >>> > > Can some one tell me where am i going wrong. > > Try " from dbfpy import * " - it should work. > Thank you > Ranganath.S > > -- > I blog at http://ranganaths.wordpress.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From srsy70 at gmail.com Tue Nov 17 07:43:01 2009 From: srsy70 at gmail.com (S.Ramaswamy) Date: Tue, 17 Nov 2009 12:13:01 +0530 Subject: [BangPypers] import module error In-Reply-To: <77bb36840911160653r63db0b76j3e17522d47cf4d2@mail.gmail.com> References: <77bb36840911160653r63db0b76j3e17522d47cf4d2@mail.gmail.com> Message-ID: >>> import dbf > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named dbf > >>> from dbf import * > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named dbf > >>> > > The example on the project page http://dbfpy.sourceforge.net/ imports thusly: "from dbfpy import dbf" and that works. Ramaswamy From srinivas_thatiparthy at akebonosoft.com Tue Nov 17 10:24:15 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 17 Nov 2009 14:54:15 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CB4857@astserver3.akebonosoft.com> Vishal ,I asked this erlier.. Nobody seems to be interested or, To put it in another way ,don't have time to do it.. :( Regards, Srinivas Reddy Thatiparthy. ------ "So say...Day by day, in every way, I am getting better, better and better !!!" "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" "Diamond is another piece of coal that did well under pressure?" "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org [mailto:bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.o rg] On Behalf Of Vishal Sent: Tuesday, November 17, 2009 11:32 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] BangPypers monthly meetup. Hi, For all those who cannot attend, is it possible to do a screencast for any demos etc, or post ppt/impress slides somewhere? Unfortunately, not all interested souls would have the chance to attend this important talk. Any help on this would be highly appreciated. Thanks and best regards, Vishal Sapre On Mon, Nov 16, 2009 at 3:17 PM, Noufal Ibrahim wrote: > So I guess it's settled then. > Time : 4:00 pm > Date : 22 Nov 2009 > Venue : Thought Works, Diamond District. > Highlights : Mahadevan's talk on python bindings for llvm > > Is this okay? > > P.S. If any of the people attending have the conference recordings, > please bring them. > > Thanks. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "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" "Diamond is another piece of coal that did well under pressure" "Happiness keeps u Sweet, Trials keep u Strong, Sorrow keeps u Human, Failure Keeps u Humble, Success keeps u Glowing, But only God Keeps u Going.....Keep Going....." _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From noufal at gmail.com Tue Nov 17 10:40:15 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 17 Nov 2009 15:10:15 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01CB4857@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01CB4857@astserver3.akebonosoft.com> Message-ID: <9963e56e0911170140x7c3de587hb218221c01477293@mail.gmail.com> On Tue, Nov 17, 2009 at 2:54 PM, Srinivas Reddy Thatiparthy wrote: > Vishal ,I ?asked this erlier.. > Nobody seems to be interested or, > To put it in another way ,don't have time to do it.. ?:( >[..] Usually, these meetings are a bunch of people sitting in a room and one guy standing up to talk about something. Sometimes, there are slides and a projector is used but usually it's a lot more informal. I think heavy infrastructure like a camera/mic setup are too much. If something like recordmydesktop works, we can use that and upload the talk somewhere. Let's try it at this meetup. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Tue Nov 17 10:43:47 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 17 Nov 2009 15:13:47 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <9963e56e0911170140x7c3de587hb218221c01477293@mail.gmail.com> References: <4EF2BF691B890546B2694C99A2852F0C01CB4857@astserver3.akebonosoft.com> <9963e56e0911170140x7c3de587hb218221c01477293@mail.gmail.com> Message-ID: <9963e56e0911170143g12802b80ta3137c8cd88fa9d3@mail.gmail.com> On Tue, Nov 17, 2009 at 3:10 PM, Noufal Ibrahim wrote: [..] > I think heavy infrastructure like a camera/mic setup are too much. If > something like recordmydesktop works, we can use that and upload the > talk somewhere. Let's try it at this meetup. [..] I just tried it on my laptop and it looks fine. I guess we can give it a shot. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Tue Nov 17 10:52:56 2009 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 17 Nov 2009 15:22:56 +0530 Subject: [BangPypers] BangPypers monthly meetup. In-Reply-To: <9963e56e0911170140x7c3de587hb218221c01477293@mail.gmail.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01CB485D@astserver3.akebonosoft.com> >>Vishal ,I ?asked this erlier.. >> Nobody seems to be interested or, >> To put it in another way ,don't have time to do it.. ?:( [..] >Usually, these meetings are a bunch of people sitting in a room and one guy standing up to talk about something. Sometimes, there are slides and a projector is used but usually it's a lot more informal. >I think heavy infrastructure like a camera/mic setup are too much. If something like recordmydesktop works, we can use that and upload the talk somewhere. Let's try it at this meetup. Thanks a ton if that turns out to be fruitful. ~ Srinivas . From vijay750 at gmail.com Tue Nov 17 11:33:51 2009 From: vijay750 at gmail.com (Vijay Ramachandran) Date: Tue, 17 Nov 2009 16:03:51 +0530 Subject: [BangPypers] Drupal vs. Django Message-ID: <5f4d8a540911170233w514d97dahcb83b3271e11e4c8@mail.gmail.com> On Mon, Nov 16, 2009 at 4:30 PM, wrote: > From: Noufal Ibrahim > Message-ID: > <9963e56e0911160144m44417d94k2f70c2e75759d812 at mail.gmail.com> > Content-Type: text/plain; charset=windows-1252 > > It's perfectly possible and equally easy to write SQL injection > exploitable code in Python if you're using the raw DBAPI > > That's not quite accurate. The accepted defense against sql injection is using prepared statements, and DBAPI strongly encourages one to use prepared statements instead of constructing the sql statement using string manipulation. Unfortunately, the placeholder MySQLdb uses is "%s", which is easy to confuse with string interpolation. The sqlite3 dbapi, for instance, uses '?', which is much clearer. Vijay -- http://www.wisdomtap.com/ From ranganaths at gmail.com Thu Nov 19 11:53:45 2009 From: ranganaths at gmail.com (Ranganath s) Date: Thu, 19 Nov 2009 16:23:45 +0530 Subject: [BangPypers] DBF error Message-ID: <77bb36840911190253v39ae651ep9ca643808637917f@mail.gmail.com> HI all, i have installed the DBF module and just wrote a small program as follows :- from dbfpy import dbf def OpenFile(tblName): '''fpath = os.path.join(local.DB_DIR,tblName)''' '''f=open(tblName,"ab+")''' db=Dbf(tblName,True) db.addField( ("NAME","C",15), ("SName","C",15), ) for(n ,s ) in ( ("john","miller"), ): rec=db.newRecord() rec["NAME"]=n rec["SNAME"]=s rec.store() db.close() OpenFile("test.dbf") ============================= This programs gives error as follows ============================= cursor at cursor:~/SchoolManagementSystem$ python test.py Traceback (most recent call last): File "test.py", line 23, in OpenFile("test.dbf") File "test.py", line 9, in OpenFile db=Dbf(tblName,True) NameError: global name 'Dbf' is not defined ================================================================= Can some one point out like where am i going wrong. Thank you Ranganath.S -- I blog at http://ranganaths.wordpress.com From ranganaths at gmail.com Thu Nov 19 11:54:23 2009 From: ranganaths at gmail.com (Ranganath s) Date: Thu, 19 Nov 2009 16:24:23 +0530 Subject: [BangPypers] DBF error Message-ID: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> HI all, i have installed the DBF module and just wrote a small program as follows :- from dbfpy import dbf def OpenFile(tblName): '''fpath = os.path.join(local.DB_DIR,tblName)''' '''f=open(tblName,"ab+")''' db=Dbf(tblName,True) db.addField( ("NAME","C",15), ("SName","C",15), ) for(n ,s ) in ( ("john","miller"), ): rec=db.newRecord() rec["NAME"]=n rec["SNAME"]=s rec.store() db.close() OpenFile("test.dbf") ============================= This programs gives error as follows ============================= cursor at cursor:~/SchoolManagementSystem$ python test.py Traceback (most recent call last): File "test.py", line 23, in OpenFile("test.dbf") File "test.py", line 9, in OpenFile db=Dbf(tblName,True) NameError: global name 'Dbf' is not defined ================================================================= Can some one point out like where am i going wrong. Thank you Ranganath.S -- I blog at http://ranganaths.wordpress.com From abpillai at gmail.com Thu Nov 19 12:06:17 2009 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 19 Nov 2009 16:36:17 +0530 Subject: [BangPypers] DBF error In-Reply-To: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> References: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> Message-ID: <8548c5f30911190306n7daecc7n2c288e8293a15ec5@mail.gmail.com> On Thu, Nov 19, 2009 at 4:24 PM, Ranganath s wrote: > HI all, > > i have installed the DBF module and just wrote a small program as > follows :- > from dbfpy import dbf > > > def OpenFile(tblName): > '''fpath = os.path.join(local.DB_DIR,tblName)''' > '''f=open(tblName,"ab+")''' > db=Dbf(tblName,True) > db.addField( > ("NAME","C",15), > ("SName","C",15), > ) > for(n ,s ) in ( > ("john","miller"), > ): > rec=db.newRecord() > rec["NAME"]=n > rec["SNAME"]=s > rec.store() > db.close() > > OpenFile("test.dbf") > > ============================= > This programs gives error as follows > ============================= > cursor at cursor:~/SchoolManagementSystem$ python test.py > Traceback (most recent call last): > File "test.py", line 23, in > OpenFile("test.dbf") > File "test.py", line 9, in OpenFile > db=Dbf(tblName,True) > NameError: global name 'Dbf' is not defined > ================================================================= > Dbf != dbf You are importing module as "dbf" so how do you expect name "Dbf" to be there ? These are silly errors. If you need to post to a forum for resolving them, there is something wrong with your way of coding. > > Can some one point out like where am i going wrong. > > Thank you > Ranganath.S > > > > > -- > I blog at http://ranganaths.wordpress.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From ranganaths at gmail.com Thu Nov 19 12:23:25 2009 From: ranganaths at gmail.com (Ranganath s) Date: Thu, 19 Nov 2009 16:53:25 +0530 Subject: [BangPypers] DBF error In-Reply-To: <8548c5f30911190306n7daecc7n2c288e8293a15ec5@mail.gmail.com> References: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> <8548c5f30911190306n7daecc7n2c288e8293a15ec5@mail.gmail.com> Message-ID: <77bb36840911190323k6df8a709kf95607d2612d0617@mail.gmail.com> well i did check for it. But if you look in to the dbf.py in the dbf module may be you can understand. Here is my imports on interpreter, @anand,These are silly errors. If you need to post to a forum for resolving them, there is something wrong with your way of coding. >> Yep, i do know there is some thing wrong with this code. just requesting geeks out there in python to just help out thats it.. ============================== ================== >>> from dbfpy import dbf >>> from dbfpy import Dbf Traceback (most recent call last): File "", line 1, in from dbfpy import Dbf ImportError: cannot import name Dbf >>> db = dbf("abcd",True) Traceback (most recent call last): File "", line 1, in db = dbf("abcd",True) ============================================ -Ranganath.S On Thu, Nov 19, 2009 at 4:36 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Thu, Nov 19, 2009 at 4:24 PM, Ranganath s wrote: > > > HI all, > > > > i have installed the DBF module and just wrote a small program as > > follows :- > > from dbfpy import dbf > > > > > > def OpenFile(tblName): > > '''fpath = os.path.join(local.DB_DIR,tblName)''' > > '''f=open(tblName,"ab+")''' > > db=Dbf(tblName,True) > > db.addField( > > ("NAME","C",15), > > ("SName","C",15), > > ) > > for(n ,s ) in ( > > ("john","miller"), > > ): > > rec=db.newRecord() > > rec["NAME"]=n > > rec["SNAME"]=s > > rec.store() > > db.close() > > > > OpenFile("test.dbf") > > > > ============================= > > This programs gives error as follows > > ============================= > > cursor at cursor:~/SchoolManagementSystem$ python test.py > > Traceback (most recent call last): > > File "test.py", line 23, in > > OpenFile("test.dbf") > > File "test.py", line 9, in OpenFile > > db=Dbf(tblName,True) > > NameError: global name 'Dbf' is not defined > > ================================================================= > > > > Dbf != dbf > > You are importing module as "dbf" so how do you expect name "Dbf" > to be there ? > > These are silly errors. If you need to post to a forum for resolving them, > there is something wrong with your way of coding. > > > > > > Can some one point out like where am i going wrong. > > > > Thank you > > Ranganath.S > > > > > > > > > > -- > > I blog at http://ranganaths.wordpress.com > > _______________________________________________ > > 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 > -- I blog at http://ranganaths.wordpress.com From aravind.geek at gmail.com Thu Nov 19 12:41:48 2009 From: aravind.geek at gmail.com (Aravind Muthu) Date: Thu, 19 Nov 2009 17:11:48 +0530 Subject: [BangPypers] DBF error In-Reply-To: <77bb36840911190323k6df8a709kf95607d2612d0617@mail.gmail.com> References: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> <8548c5f30911190306n7daecc7n2c288e8293a15ec5@mail.gmail.com> <77bb36840911190323k6df8a709kf95607d2612d0617@mail.gmail.com> Message-ID: from dbfpy import dbf def OpenFile(tblName): '''fpath = os.path.join(local.DB_DIR,tblName)''' '''f=open(tblName,"ab+")''' db=dbf.Dbf(tblName,True) db.addField( ("NAME","C",15), ("SName","C",15), ) for(n ,s ) in ( ("john","miller"), ): rec=db.newRecord() rec["NAME"]=n rec["SNAME"]=s rec.store() db.close() OpenFile("test.dbf") sure it will work..check it out On 11/19/09, Ranganath s wrote: > well i did check for it. But if you look in to the dbf.py in the dbf module > may be you can understand. Here is my imports on interpreter, > > @anand,These are silly errors. If you need to post to a forum for resolving > them, > there is something wrong with your way of coding. >>> Yep, i do know there is some thing wrong with this code. just requesting > geeks out there in python to just help out thats it.. > > ============================== > ================== >>>> from dbfpy import dbf >>>> from dbfpy import Dbf > > Traceback (most recent call last): > File "", line 1, in > from dbfpy import Dbf > ImportError: cannot import name Dbf >>>> db = dbf("abcd",True) > > Traceback (most recent call last): > File "", line 1, in > db = dbf("abcd",True) > ============================================ > > -Ranganath.S > > On Thu, Nov 19, 2009 at 4:36 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > >> On Thu, Nov 19, 2009 at 4:24 PM, Ranganath s wrote: >> >> > HI all, >> > >> > i have installed the DBF module and just wrote a small program >> > as >> > follows :- >> > from dbfpy import dbf >> > >> > >> > def OpenFile(tblName): >> > '''fpath = os.path.join(local.DB_DIR,tblName)''' >> > '''f=open(tblName,"ab+")''' >> > db=Dbf(tblName,True) >> > db.addField( >> > ("NAME","C",15), >> > ("SName","C",15), >> > ) >> > for(n ,s ) in ( >> > ("john","miller"), >> > ): >> > rec=db.newRecord() >> > rec["NAME"]=n >> > rec["SNAME"]=s >> > rec.store() >> > db.close() >> > >> > OpenFile("test.dbf") >> > >> > ============================= >> > This programs gives error as follows >> > ============================= >> > cursor at cursor:~/SchoolManagementSystem$ python test.py >> > Traceback (most recent call last): >> > File "test.py", line 23, in >> > OpenFile("test.dbf") >> > File "test.py", line 9, in OpenFile >> > db=Dbf(tblName,True) >> > NameError: global name 'Dbf' is not defined >> > ================================================================= >> > >> >> Dbf != dbf >> >> You are importing module as "dbf" so how do you expect name "Dbf" >> to be there ? >> >> These are silly errors. If you need to post to a forum for resolving >> them, >> there is something wrong with your way of coding. >> >> >> > >> > Can some one point out like where am i going wrong. >> > >> > Thank you >> > Ranganath.S >> > >> > >> > >> > >> > -- >> > I blog at http://ranganaths.wordpress.com >> > _______________________________________________ >> > 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 >> > > > > -- > I blog at http://ranganaths.wordpress.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Thu Nov 19 12:42:12 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 19 Nov 2009 17:12:12 +0530 Subject: [BangPypers] DBF error In-Reply-To: <77bb36840911190323k6df8a709kf95607d2612d0617@mail.gmail.com> References: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> <8548c5f30911190306n7daecc7n2c288e8293a15ec5@mail.gmail.com> <77bb36840911190323k6df8a709kf95607d2612d0617@mail.gmail.com> Message-ID: <9963e56e0911190342x4a5b48c6vc404092e5d3c7b50@mail.gmail.com> On Thu, Nov 19, 2009 at 4:53 PM, Ranganath s wrote: > well i did check for it. But if you look in to the dbf.py in the dbf module > may be you can understand. Here is my imports on interpreter, Try from dbfpy.dbf import Dbf I'd recommend you skim through the modules/packages sections of the tutorial. The __init__.py business is something people often trip over. -- ~noufal http://nibrahim.net.in From aravind.geek at gmail.com Thu Nov 19 12:51:45 2009 From: aravind.geek at gmail.com (Aravind Muthu) Date: Thu, 19 Nov 2009 17:21:45 +0530 Subject: [BangPypers] DBF error In-Reply-To: <9963e56e0911190342x4a5b48c6vc404092e5d3c7b50@mail.gmail.com> References: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> <8548c5f30911190306n7daecc7n2c288e8293a15ec5@mail.gmail.com> <77bb36840911190323k6df8a709kf95607d2612d0617@mail.gmail.com> <9963e56e0911190342x4a5b48c6vc404092e5d3c7b50@mail.gmail.com> Message-ID: No need to change ur import class.. make these changes in ur pgm. from dbfpy import dbf db=dbf.Dbf(tblName,True) On 11/19/09, Noufal Ibrahim wrote: > On Thu, Nov 19, 2009 at 4:53 PM, Ranganath s wrote: >> well i did check for it. But if you look in to the dbf.py in the dbf >> module >> may be you can understand. Here is my imports on interpreter, > > Try > from dbfpy.dbf import Dbf > > I'd recommend you skim through the modules/packages sections of the > tutorial. The __init__.py business is something people often trip > over. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From ranganaths at gmail.com Thu Nov 19 12:59:45 2009 From: ranganaths at gmail.com (Ranganath s) Date: Thu, 19 Nov 2009 17:29:45 +0530 Subject: [BangPypers] DBF error In-Reply-To: References: <77bb36840911190254w4b25f48es7b5c797b7a64723d@mail.gmail.com> <8548c5f30911190306n7daecc7n2c288e8293a15ec5@mail.gmail.com> <77bb36840911190323k6df8a709kf95607d2612d0617@mail.gmail.com> <9963e56e0911190342x4a5b48c6vc404092e5d3c7b50@mail.gmail.com> Message-ID: <77bb36840911190359y40f1fefft448cb0a64a85ce1e@mail.gmail.com> Thanks Aravind , Noufal.. -R On Thu, Nov 19, 2009 at 5:21 PM, Aravind Muthu wrote: > No need to change ur import class.. > make these changes in ur pgm. > > from dbfpy import dbf > > > > db=dbf.Dbf(tblName,True) > > On 11/19/09, Noufal Ibrahim wrote: > > On Thu, Nov 19, 2009 at 4:53 PM, Ranganath s > wrote: > >> well i did check for it. But if you look in to the dbf.py in the dbf > >> module > >> may be you can understand. Here is my imports on interpreter, > > > > Try > > from dbfpy.dbf import Dbf > > > > I'd recommend you skim through the modules/packages sections of the > > tutorial. The __init__.py business is something people often trip > > over. > > > > > > > > -- > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > 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 > -- I blog at http://ranganaths.wordpress.com From leela.vadlamudi at gmail.com Thu Nov 19 13:38:18 2009 From: leela.vadlamudi at gmail.com (leela vadlamudi) Date: Thu, 19 Nov 2009 18:08:18 +0530 Subject: [BangPypers] [JOB] Web developers required Message-ID: <959452bf0911190438n1a836b9dlf20debf28604161b@mail.gmail.com> Hi, Global Analytics India has immediate requirements for experienced python programmers and web developers (preferably in Django). The openings are in Chennai. Please rush your cv to careers at global-analytics.com with position mentioned in the subject line. 2+ years of Python web developers with preference to Django framework. Experience in developing dynamic websites using DHTML, XML, CSS, JavaScript, Ajax. Working knowledge of Django/ Pylons/ Turbo gears or any Python web Frameworks. Django experience is an advantage. Knowledge of MySql & Apache is a must. Other skills: Experience in using Wordpress/Joomla or any CMS is a plus. *For python programmers* 1+ year experience working in Python, Django (preferred) & JavaScript. -Good Knowledge in Object oriented programming -Knowledge of multiple web frameworks (preferred). Thanks From sriramnrn at gmail.com Thu Nov 19 14:09:05 2009 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Thu, 19 Nov 2009 18:39:05 +0530 Subject: [BangPypers] [Reminder] BangPypers monthly meetup on Sun November 22 4 pm at Thoughtworks on LLVM-py Message-ID: <49977f270911190509w20c2d0bfg37341c81f78e83c8@mail.gmail.com> A reminder/confirmation - I just called Mahadevan and confirmed the following with him. -- Sriram ---------- Forwarded message ---------- From: Noufal Ibrahim Date: Mon, Nov 16, 2009 at 3:17 PM Subject: Re: [BangPypers] BangPypers monthly meetup. To: Bangalore Python Users Group - India So I guess it's settled then. Time : 4:00 pm Date : 22 Nov 2009 Venue : Thought Works, Diamond District. Highlights : Mahadevan's talk on python bindings for llvm Is this okay? P.S. If any of the people attending have the conference recordings, please bring them. Thanks. -- ~noufal http://nibrahim.net.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From srini at nanolets.in Fri Nov 20 03:49:56 2009 From: srini at nanolets.in (Nanolets nanolets) Date: Fri, 20 Nov 2009 08:19:56 +0530 Subject: [BangPypers] [JOB] Twisted based ftp server Message-ID: Server is a framework which may connect to any heirarchical data source to give a folder view to it. Job is a 3 months contract. Email me offline if anybody is interested for discussion. Regards Srini. From praveen.python.plone at gmail.com Sun Nov 22 12:10:33 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Sun, 22 Nov 2009 16:40:33 +0530 Subject: [BangPypers] Python 3 book Message-ID: <6305ec600911220310x6a7e88f1kd86c8da510bde8ef@mail.gmail.com> "Programming in Python 3 (Second Edition): A Complete Introduction to the Python Language" ISBN 0321680561 *http://www.qtrac.eu/py3book.html* The book has been fully revised and updated and now covers both Python 3.0 and 3.1, and with the language moratorium (PEP 3003), this second edition should be useful for many years to come. And in addition to the thorough updating, the book has been extended with new chapters on debugging, testing, and profiling, and on parsing (including coverage of the PyParsing and PLY modules), as well as a new section on coroutines in the advanced chapter. The book is aimed at a wide audience, but assumes some programming experience (not necessarily Python, not necessarily object-oriented). It teaches solid procedural style programming, then builds on that to teach solid object-oriented programming, and then goes on to more advanced topics (e.g., including a nice way to create validated attributes by combining class decorators with descriptors). But even newcomers to Python 3 should be able to write useful (although small and basic) programs after reading chapter 1, and then go on to create larger and more sophisticated programs as they work through the chapters. All the examples are available for download from the book's web site. -- Praveen Kumar +91 9620621342 http://praveensunsetpoint.wordpress.com Bangalore From mailzico at gmail.com Sun Nov 22 12:50:54 2009 From: mailzico at gmail.com (Zico) Date: Sun, 22 Nov 2009 17:50:54 +0600 Subject: [BangPypers] Python 3 book In-Reply-To: <6305ec600911220310x6a7e88f1kd86c8da510bde8ef@mail.gmail.com> References: <6305ec600911220310x6a7e88f1kd86c8da510bde8ef@mail.gmail.com> Message-ID: <69621d830911220350n701197f2wbd68d92392da217a@mail.gmail.com> On Sun, Nov 22, 2009 at 5:10 PM, Praveen Kumar < praveen.python.plone at gmail.com> wrote: > "Programming in Python 3 (Second Edition): > A Complete Introduction to the Python Language" > ISBN 0321680561 > *http://www.qtrac.eu/py3book.html* > > *Not found - 404* URL requested (/py3book.html*) not found -- Best, Zico From praveen.python.plone at gmail.com Sun Nov 22 12:53:23 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Sun, 22 Nov 2009 17:23:23 +0530 Subject: [BangPypers] Python 3 book In-Reply-To: <69621d830911220350n701197f2wbd68d92392da217a@mail.gmail.com> References: <6305ec600911220310x6a7e88f1kd86c8da510bde8ef@mail.gmail.com> <69621d830911220350n701197f2wbd68d92392da217a@mail.gmail.com> Message-ID: <6305ec600911220353g12350da2j9a72faa2923b4d54@mail.gmail.com> Remove ( * ) at end.. On Sun, Nov 22, 2009 at 5:20 PM, Zico wrote: > On Sun, Nov 22, 2009 at 5:10 PM, Praveen Kumar < > praveen.python.plone at gmail.com> wrote: > > > "Programming in Python 3 (Second Edition): > > A Complete Introduction to the Python Language" > > ISBN 0321680561 > > *http://www.qtrac.eu/py3book.html* > > > > > *Not found - 404* > > URL requested (/py3book.html*) not found > > > -- > Best, > Zico > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore From noufal at gmail.com Mon Nov 23 17:58:45 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 23 Nov 2009 22:28:45 +0530 Subject: [BangPypers] [Reminder] BangPypers monthly meetup on Sun November 22 4 pm at Thoughtworks on LLVM-py In-Reply-To: <49977f270911190509w20c2d0bfg37341c81f78e83c8@mail.gmail.com> References: <49977f270911190509w20c2d0bfg37341c81f78e83c8@mail.gmail.com> Message-ID: <9963e56e0911230858k7394670dgc5dbf858fd28cbf8@mail.gmail.com> This went well. Not much on the mintues since it was basically all Mahadevan's excellent presentation on LLVM and llvm-py We tried recording the desktop but it didn't work so unfortunately, no screencasts. :( On Thu, Nov 19, 2009 at 6:39 PM, Sriram Narayanan wrote: > A reminder/confirmation - I just called Mahadevan and confirmed the > following with him. > > -- Sriram > > ---------- Forwarded message ---------- > From: Noufal Ibrahim > Date: Mon, Nov 16, 2009 at 3:17 PM > Subject: Re: [BangPypers] BangPypers monthly meetup. > To: Bangalore Python Users Group - India > > > So I guess it's settled then. > Time : 4:00 pm > Date : 22 Nov 2009 > Venue : Thought Works, Diamond District. > Highlights : Mahadevan's talk on python bindings for llvm > > Is this okay? > > P.S. If any of the people attending have the conference recordings, > please bring them. > > Thanks. > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > 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 > -- ~noufal http://nibrahim.net.in From vivekbest86 at yahoo.com Tue Nov 24 05:31:46 2009 From: vivekbest86 at yahoo.com (Vivek Rajendran) Date: Mon, 23 Nov 2009 20:31:46 -0800 (PST) Subject: [BangPypers] in CGI using getcwd Message-ID: <26490352.post@talk.nabble.com> Hi, I'm facing a problem as follows in using os.getcwd() in CGI scripting (Linux FC2 ,FC11) For Ex: I'm having my web folder and index.py file in location /var/www/html/foobar/index.py. Also, I have a test file info.txt in the same foobar folder. My index.py is not able to open the file and read it in tha folder. Instead it reads under '/' folder. When I did os.getcwd() surprisingly I'm getting '/' as the current folder irrespective of location wherever I run the script. Also, I tried os.environ['PWD']. Same is the problem.(In windows both the approaches are working properly) Is this a configuration issue? If then, please tell me which file I need to configure (like httpd.conf,python.conf) and how to do it? It will be of great help to me If anyone provides me a clear and working soluton. Thanks and Regards Vivek Rajendran -- View this message in context: http://old.nabble.com/in-CGI-using-getcwd-tp26490352p26490352.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From vivekbest86 at yahoo.com Tue Nov 24 05:39:17 2009 From: vivekbest86 at yahoo.com (Vivek Rajendran) Date: Mon, 23 Nov 2009 20:39:17 -0800 (PST) Subject: [BangPypers] How to retrieve current URL in CGI scripting Message-ID: <26490399.post@talk.nabble.com> Hi, I would like to know how to get the current url inside the cgi script where I'm using it. For Ex: I'm having index.py in location /var/www/html/foobar/ in server with IP 10.0.0.12 When I retrive this page from browser, I want to know the current URL as "http://10.0.0.12/foobar/" Do we have any way to do this? If then, please let me know. Thanks and Regards Vivek Rajendran -- View this message in context: http://old.nabble.com/How-to-retrieve-current-URL-in-CGI-scripting-tp26490399p26490399.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From hiddenharmony at gmail.com Tue Nov 24 07:43:24 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Tue, 24 Nov 2009 12:13:24 +0530 Subject: [BangPypers] How to retrieve current URL in CGI scripting In-Reply-To: <26490399.post@talk.nabble.com> References: <26490399.post@talk.nabble.com> Message-ID: <91bea30d0911232243s2ea290cbmf890e85e86a73a20@mail.gmail.com> On Tue, Nov 24, 2009 at 10:09 AM, Vivek Rajendran wrote: > > Hi, > ? ? I would like to know how to get the current url inside the cgi script > where I'm using it. > For Ex: > ? ? I'm having index.py in location /var/www/html/foobar/ in server with IP > 10.0.0.12 > > ? ? When I retrive this page from browser, I want to know the current URL > as "http://10.0.0.12/foobar/" You can find this information in HTTP headers. regards Vivek -- The hidden harmony is better than the obvious!! From scorpion032 at gmail.com Tue Nov 24 08:22:27 2009 From: scorpion032 at gmail.com (Lakshman Prasad) Date: Tue, 24 Nov 2009 12:52:27 +0530 Subject: [BangPypers] in CGI using getcwd In-Reply-To: <26490352.post@talk.nabble.com> References: <26490352.post@talk.nabble.com> Message-ID: Yes, os.getcwd() does not give the directory where your code is located, but where the call happens from. Otherwise it would always point to the where python is installed on your system. In order to get the directory of where the code is, you should something like follows: this_file = os.path.abspath(__file__) this_dir = os.path.dirname(this_file) On Tue, Nov 24, 2009 at 10:01 AM, Vivek Rajendran wrote: > > Hi, > I'm facing a problem as follows in using os.getcwd() in CGI scripting > (Linux FC2 ,FC11) > For Ex: > I'm having my web folder and index.py file in location > /var/www/html/foobar/index.py. > Also, I have a test file info.txt in the same foobar folder. > My index.py is not able to open the file and read it in tha folder. > Instead it reads under '/' folder. > When I did os.getcwd() surprisingly I'm getting '/' as the current > folder irrespective of location wherever I run the script. Also, I tried > os.environ['PWD']. Same is the problem.(In windows both the approaches are > working properly) > Is this a configuration issue? If then, please tell me which file I > need to configure (like httpd.conf,python.conf) and how to do it? > It will be of great help to me If anyone provides me a clear and > working soluton. > > Thanks and Regards > Vivek Rajendran > > -- > View this message in context: > http://old.nabble.com/in-CGI-using-getcwd-tp26490352p26490352.html > Sent from the BangPypers - Bangalore Python Users Group mailing list > archive at Nabble.com. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Lakshman becomingguru.com lakshmanprasad.com From noufal at gmail.com Tue Nov 24 17:05:35 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 24 Nov 2009 21:35:35 +0530 Subject: [BangPypers] Python 3 book In-Reply-To: <6305ec600911220353g12350da2j9a72faa2923b4d54@mail.gmail.com> References: <6305ec600911220310x6a7e88f1kd86c8da510bde8ef@mail.gmail.com> <69621d830911220350n701197f2wbd68d92392da217a@mail.gmail.com> <6305ec600911220353g12350da2j9a72faa2923b4d54@mail.gmail.com> Message-ID: <9963e56e0911240805x2e37e364va71e31f1074d3f98@mail.gmail.com> On Sun, Nov 22, 2009 at 5:23 PM, Praveen Kumar wrote: [..] >> > "Programming in Python 3 (Second Edition): >> > A Complete Introduction to the Python Language" >> > ISBN 0321680561 >> > *http://www.qtrac.eu/py3book.html* [..] There's also http://diveintopython3.org/ -- ~noufal http://nibrahim.net.in From praveen.python.plone at gmail.com Wed Nov 25 06:20:44 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Wed, 25 Nov 2009 10:50:44 +0530 Subject: [BangPypers] How to retrieve current URL in CGI scripting In-Reply-To: <91bea30d0911232243s2ea290cbmf890e85e86a73a20@mail.gmail.com> References: <26490399.post@talk.nabble.com> <91bea30d0911232243s2ea290cbmf890e85e86a73a20@mail.gmail.com> Message-ID: <6305ec600911242120o160473e8o85b3a6688367d4e4@mail.gmail.com> You can try HTTP_REFERER but it depends on several things (browser, server, cgi-implementation etc.) On Tue, Nov 24, 2009 at 12:13 PM, Vivek Khurana wrote: > On Tue, Nov 24, 2009 at 10:09 AM, Vivek Rajendran > wrote: > > > > Hi, > > I would like to know how to get the current url inside the cgi script > > where I'm using it. > > For Ex: > > I'm having index.py in location /var/www/html/foobar/ in server with > IP > > 10.0.0.12 > > > > When I retrive this page from browser, I want to know the current URL > > as "http://10.0.0.12/foobar/" > > You can find this information in HTTP headers. > > regards > Vivek > > -- > The hidden harmony is better than the obvious!! > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore From Mahaboob_Subhan at DellTeam.com Wed Nov 25 12:54:03 2009 From: Mahaboob_Subhan at DellTeam.com (Mahaboob_Subhan at DellTeam.com) Date: Wed, 25 Nov 2009 05:54:03 -0600 Subject: [BangPypers] ssh client Message-ID: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> How can I write ssh client using python socket ? Subhan From mdevan.foobar at gmail.com Wed Nov 25 15:19:21 2009 From: mdevan.foobar at gmail.com (Mahadevan R) Date: Wed, 25 Nov 2009 19:49:21 +0530 Subject: [BangPypers] ssh client In-Reply-To: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> References: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> Message-ID: On Wed, Nov 25, 2009 at 5:24 PM, wrote: > How can I write ssh client using python socket ? Try paramiko: http://www.lag.net/paramiko/ Regards, -MD. From praveen.python.plone at gmail.com Wed Nov 25 15:19:47 2009 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Wed, 25 Nov 2009 19:49:47 +0530 Subject: [BangPypers] ssh client In-Reply-To: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> References: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> Message-ID: <6305ec600911250619j4392461fqfa54c1ab5535f3a8@mail.gmail.com> I could not get your question exactly, but if you want to write some simple program go through the http://docs.python.org/library/socket.html#example Thanks and regards Praveen Kumar +91 9620621342 On Wed, Nov 25, 2009 at 5:24 PM, wrote: > How can I write ssh client using python socket ? > > > > > > Subhan > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore From vivekbest86 at yahoo.com Thu Nov 26 15:11:10 2009 From: vivekbest86 at yahoo.com (Vivek Rajendran) Date: Thu, 26 Nov 2009 06:11:10 -0800 (PST) Subject: [BangPypers] ssh client In-Reply-To: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> References: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> Message-ID: <26529988.post@talk.nabble.com> Hi, You want strictly to do this using socket? Else, you can use pexpect module. It doesn't come with default python installation in both windows and linux. You can download it seperately and install the module. Basically you will spawn a process and then ssh into the remote machine. Mahaboob_Subhan wrote: > > How can I write ssh client using python socket ? > > > > > > Subhan > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- View this message in context: http://old.nabble.com/ssh-client-tp26513204p26529988.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From ramdaz at gmail.com Thu Nov 26 15:12:29 2009 From: ramdaz at gmail.com (Ramdas S) Date: Thu, 26 Nov 2009 19:42:29 +0530 Subject: [BangPypers] ssh client In-Reply-To: <26529988.post@talk.nabble.com> References: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> <26529988.post@talk.nabble.com> Message-ID: <6e38f9f00911260612u3d561f8ncd1c3a43b70de1dd@mail.gmail.com> pexpect is a good choice, and its way simple, but getting it to work on windows is tough..... On Thu, Nov 26, 2009 at 7:41 PM, Vivek Rajendran wrote: > > Hi, > You want strictly to do this using socket? > Else, you can use pexpect module. It doesn't come with default python > installation in both windows and linux. > You can download it seperately and install the module. Basically you will > spawn a process and then ssh into the remote machine. > > > > > Mahaboob_Subhan wrote: > > > > How can I write ssh client using python socket ? > > > > > > > > > > > > Subhan > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > View this message in context: > http://old.nabble.com/ssh-client-tp26513204p26529988.html > Sent from the BangPypers - Bangalore Python Users Group mailing list > archive at Nabble.com. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 From vivekbest86 at yahoo.com Thu Nov 26 15:15:34 2009 From: vivekbest86 at yahoo.com (Vivek Rajendran) Date: Thu, 26 Nov 2009 06:15:34 -0800 (PST) Subject: [BangPypers] How to retrieve current URL in CGI scripting In-Reply-To: <91bea30d0911232243s2ea290cbmf890e85e86a73a20@mail.gmail.com> References: <26490399.post@talk.nabble.com> <91bea30d0911232243s2ea290cbmf890e85e86a73a20@mail.gmail.com> Message-ID: <26530049.post@talk.nabble.com> Hi, A doubt again... I have looked into apache.py file inside /usr/lib/python2.3/site-packages/... path and they have a method build_cgi_env(req) If we invoke this function it gives a dict of env variables. But I don't know how to invoke this function ? with that 'req' argument. Can anyone please help me? Thanks Vivek R Vivek Khurana-2 wrote: > > On Tue, Nov 24, 2009 at 10:09 AM, Vivek Rajendran > wrote: >> >> Hi, >> ? ? I would like to know how to get the current url inside the cgi script >> where I'm using it. >> For Ex: >> ? ? I'm having index.py in location /var/www/html/foobar/ in server with >> IP >> 10.0.0.12 >> >> ? ? When I retrive this page from browser, I want to know the current URL >> as "http://10.0.0.12/foobar/" > > You can find this information in HTTP headers. > > regards > Vivek > > -- > The hidden harmony is better than the obvious!! > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- View this message in context: http://old.nabble.com/How-to-retrieve-current-URL-in-CGI-scripting-tp26490399p26530049.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From vivekbest86 at yahoo.com Thu Nov 26 15:50:37 2009 From: vivekbest86 at yahoo.com (Vivek Rajendran) Date: Thu, 26 Nov 2009 06:50:37 -0800 (PST) Subject: [BangPypers] ssh client In-Reply-To: <6e38f9f00911260612u3d561f8ncd1c3a43b70de1dd@mail.gmail.com> References: <35D47D6EB5A05A42886E5A338ECCFEC1010429@ausx3mps351.aus.amer.dell.com> <26529988.post@talk.nabble.com> <6e38f9f00911260612u3d561f8ncd1c3a43b70de1dd@mail.gmail.com> Message-ID: <26530504.post@talk.nabble.com> Hi, You are right. In that case we can use paramiko module. But its less used. And it uses ssh2 protocol Thanks Vivek Rajendran Ramdas S wrote: > > pexpect is a good choice, and its way simple, but getting it to work on > windows is tough..... > > On Thu, Nov 26, 2009 at 7:41 PM, Vivek Rajendran > wrote: > >> >> Hi, >> You want strictly to do this using socket? >> Else, you can use pexpect module. It doesn't come with default python >> installation in both windows and linux. >> You can download it seperately and install the module. Basically you >> will >> spawn a process and then ssh into the remote machine. >> >> >> >> >> Mahaboob_Subhan wrote: >> > >> > How can I write ssh client using python socket ? >> > >> > >> > >> > >> > >> > Subhan >> > >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/ssh-client-tp26513204p26529988.html >> Sent from the BangPypers - Bangalore Python Users Group mailing list >> archive at Nabble.com. >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > Ramdas S > +91 9342 583 065 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- View this message in context: http://old.nabble.com/ssh-client-tp26513204p26530504.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From hiddenharmony at gmail.com Thu Nov 26 15:51:59 2009 From: hiddenharmony at gmail.com (Vivek Khurana) Date: Thu, 26 Nov 2009 20:21:59 +0530 Subject: [BangPypers] How to retrieve current URL in CGI scripting In-Reply-To: <26530049.post@talk.nabble.com> References: <26490399.post@talk.nabble.com> <91bea30d0911232243s2ea290cbmf890e85e86a73a20@mail.gmail.com> <26530049.post@talk.nabble.com> Message-ID: <91bea30d0911260651r4d281f1am3f7195313740246d@mail.gmail.com> On Thu, Nov 26, 2009 at 7:45 PM, Vivek Rajendran wrote: > > Hi, > ? ?A doubt again... > ? ?I have looked into apache.py file inside > /usr/lib/python2.3/site-packages/... path and they have a method > build_cgi_env(req) > > ? ?If we invoke this function it gives a dict of env variables. > ? ?But I don't know how to invoke this function ? with that 'req' argument. import apache env = apache.build_cgi_env(req) req will be the request object. regards Vivek -- The hidden harmony is better than the obvious!! From noufal at gmail.com Mon Nov 30 11:06:59 2009 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 30 Nov 2009 15:36:59 +0530 Subject: [BangPypers] apycot Message-ID: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> Hi, Does anyone have any experience with using apycot http://www.logilab.org/project/apycot to automate a large batch of tests? I basically need a framework to do all the accounting and paperwork for me. Alternative suggestions would be nice too. Thanks -- ~noufal http://nibrahim.net.in From mbaiju at zeomega.com Mon Nov 30 12:38:08 2009 From: mbaiju at zeomega.com (Baiju M) Date: Mon, 30 Nov 2009 17:08:08 +0530 Subject: [BangPypers] apycot In-Reply-To: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> References: <9963e56e0911300206l3a6a6781g9143fe41ce5b4758@mail.gmail.com> Message-ID: On Mon, Nov 30, 2009 at 3:36 PM, Noufal Ibrahim wrote: > Hi, > ?Does anyone have any experience with using apycot > http://www.logilab.org/project/apycot to automate a large batch of tests? I > basically need a framework to do all the accounting and paperwork for me. > Alternative suggestions would be nice too. May be you are looking for continuous integration server like: http://hudson-ci.org/ or http://buildbot.net/trac (try: http://pypi.python.org/pypi/collective.buildbot ) Regards, Baiju M From Mahaboob_Subhan at DellTeam.com Thu Nov 26 12:33:51 2009 From: Mahaboob_Subhan at DellTeam.com (Mahaboob_Subhan at DellTeam.com) Date: Thu, 26 Nov 2009 05:33:51 -0600 Subject: [BangPypers] BangPypers Digest, Vol 27, Issue 32 In-Reply-To: References: Message-ID: <35D47D6EB5A05A42886E5A338ECCFEC1010436@ausx3mps351.aus.amer.dell.com> I tried paramiko,but I am getting following error while importing paramiko ImportError: No module named Crypto.Util.randpool Subhan -----Original Message----- From: bangpypers-bounces+mahaboobcrc=gmail.com at python.org [mailto:bangpypers-bounces+mahaboobcrc=gmail.com at python.org] On Behalf Of bangpypers-request at python.org Sent: Thursday, November 26, 2009 4:30 PM To: bangpypers at python.org Subject: BangPypers Digest, Vol 27, Issue 32 Send BangPypers mailing list submissions to bangpypers at python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/bangpypers or, via email, send a message with subject or body 'help' to bangpypers-request at python.org You can reach the person managing the list at bangpypers-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of BangPypers digest..." Today's Topics: 1. ssh client (Mahaboob_Subhan at DellTeam.com) 2. Re: ssh client (Mahadevan R) 3. Re: ssh client (Praveen Kumar) ---------------------------------------------------------------------- Message: 1 Date: Wed, 25 Nov 2009 05:54:03 -0600 From: To: Subject: [BangPypers] ssh client Message-ID: <35D47D6EB5A05A42886E5A338ECCFEC1010429 at ausx3mps351.aus.amer.dell.com> Content-Type: text/plain; charset="US-ASCII" How can I write ssh client using python socket ? Subhan ------------------------------ Message: 2 Date: Wed, 25 Nov 2009 19:49:21 +0530 From: Mahadevan R To: Bangalore Python Users Group - India Subject: Re: [BangPypers] ssh client Message-ID: Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 25, 2009 at 5:24 PM, wrote: > How can I write ssh client using python socket ? Try paramiko: http://www.lag.net/paramiko/ Regards, -MD. ------------------------------ Message: 3 Date: Wed, 25 Nov 2009 19:49:47 +0530 From: Praveen Kumar To: Bangalore Python Users Group - India Subject: Re: [BangPypers] ssh client Message-ID: <6305ec600911250619j4392461fqfa54c1ab5535f3a8 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 I could not get your question exactly, but if you want to write some simple program go through the http://docs.python.org/library/socket.html#example Thanks and regards Praveen Kumar +91 9620621342 On Wed, Nov 25, 2009 at 5:24 PM, wrote: > How can I write ssh client using python socket ? > > > > > > Subhan > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore ------------------------------ _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers End of BangPypers Digest, Vol 27, Issue 32 ****************************************** From Mahaboob_Subhan at DellTeam.com Thu Nov 26 12:36:14 2009 From: Mahaboob_Subhan at DellTeam.com (Mahaboob_Subhan at DellTeam.com) Date: Thu, 26 Nov 2009 05:36:14 -0600 Subject: [BangPypers] meta programming Message-ID: <35D47D6EB5A05A42886E5A338ECCFEC1010437@ausx3mps351.aus.amer.dell.com> Hi All, Is there any good python Meta programming tutorial? Subhan