From dennis at computer.org Sat Oct 2 11:27:54 2010 From: dennis at computer.org (Dennis Varkey) Date: Sat, 2 Oct 2010 14:57:54 +0530 Subject: [BangPypers] Beginner help Message-ID: I heard about python and found that it was very simple to code. I would like to know any IDE's in which i can code python in windows From delegbede at dudupay.com Sat Oct 2 11:30:29 2010 From: delegbede at dudupay.com (delegbede at dudupay.com) Date: Sat, 2 Oct 2010 09:30:29 +0000 Subject: [BangPypers] Beginner help In-Reply-To: References: Message-ID: <603797363-1286011829-cardhu_decombobulator_blackberry.rim.net-1750980014-@bda2349.bisx.produk.on.blackberry> Textpad or notepad++ should do. One comes with python itself. Sent from my BlackBerry wireless device from MTN -----Original Message----- From: Dennis Varkey Sender: bangpypers-bounces+delegbede=dudupay.com at python.org Date: Sat, 2 Oct 2010 14:57:54 To: Reply-To: Bangalore Python Users Group - India Subject: [BangPypers] Beginner help I heard about python and found that it was very simple to code. I would like to know any IDE's in which i can code python in windows _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From orsenthil at gmail.com Sat Oct 2 11:31:00 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sat, 2 Oct 2010 15:01:00 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: Message-ID: On Sat, Oct 2, 2010 at 2:57 PM, Dennis Varkey wrote: > I heard about python and found that it was very simple to code. > I would like to know any IDE's in which i can code python in windows Download ActiveState Python and use the IDE which comes along with it. It is called PythonWin IDE. Also, have a look at article: http://wiki.python.org/moin/IntegratedDevelopmentEnvironments -- Senthil From zubin.mithra at gmail.com Sat Oct 2 13:13:26 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Sat, 2 Oct 2010 16:43:26 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: Message-ID: > > I heard about python and found that it was very simple to code. > I would like to know any IDE's in which i can code python in windows There are loads of options available. I'd recommend notepad++(great text editor with lots of plugins) and Eclipse(IDE). zm From noufal at gmail.com Sat Oct 2 13:21:56 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 02 Oct 2010 16:51:56 +0530 Subject: [BangPypers] Beginner help In-Reply-To: (Dennis Varkey's message of "Sat, 2 Oct 2010 14:57:54 +0530") References: Message-ID: <87tyl4vnzf.fsf@gmail.com> On Sat, Oct 02 2010, Dennis Varkey wrote: > I heard about python and found that it was very simple to code. > I would like to know any IDE's in which i can code python in windows [...] There should be something you're already comfortable with that has a plugin for Python. You should use that. Switching development environments completely for different languages doesn't seem very productive to me. -- From vsapre80 at gmail.com Sat Oct 2 17:34:03 2010 From: vsapre80 at gmail.com (Vishal) Date: Sat, 2 Oct 2010 21:04:03 +0530 Subject: [BangPypers] Beginner help In-Reply-To: <87tyl4vnzf.fsf@gmail.com> References: <87tyl4vnzf.fsf@gmail.com> Message-ID: if you are on Windows, try out PyScripter. I am sure you'll like it. Thanks and best regards, Vishal Sapre On Sat, Oct 2, 2010 at 4:51 PM, Noufal Ibrahim wrote: > On Sat, Oct 02 2010, Dennis Varkey wrote: > > > I heard about python and found that it was very simple to code. > > I would like to know any IDE's in which i can code python in windows > > [...] > > There should be something you're already comfortable with that has a > plugin for Python. You should use that. Switching development > environments completely for different languages doesn't seem very > productive to me. > > -- > _______________________________________________ > 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? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." From vid at svaksha.com Sun Oct 3 04:46:58 2010 From: vid at svaksha.com (=?UTF-8?B?4KWlIOCkuOCljeCkteCkleCljeCktyDgpaUg?=) Date: Sun, 3 Oct 2010 08:16:58 +0530 Subject: [BangPypers] Fwd: [x-post] weekly python dojo meetups @bangalore. In-Reply-To: References: Message-ID: Hmmm..I forgot to post this here. ---------- Forwarded message ---------- Hello Folks, The other day, Nigel and me were having an irc discussion and I suggested we kick-start a weekly python-dojo[0] meet-up in Bangalore. Sunil Abraham (Exec.Dir) of CIS was kind enough to donate their office space and even offered to sponsor the java (pun unintended). Thanks Sunil/CIS. So here's the plan for weekly python-dojo sessions in Bangalore, WHAT: Weekly python-dojo sessions in Bangalore which is inspired by dojorio[0][1] meetups in Brazil where they apply the "small acts manifesto"[2]. The idea is to create a friendly atmosphere which encourages "beginners" (...and experts and everyone in between) to share and learn with the community. Please bring your laptops/netbooks etc.. as the dojo will be hands-on where we will work on small problems that exist in FLOSS software which automatically helps us learn a lot more about our system. Folks that dont have laptops are also welcome -- atm, we cant provide machines to work on but you can watch others, ask questions, learn, and later try it out at home. WHO can participation: ANYONE. Absolutely anyone can walk in and participate at the venue. There is no registration fee or cost (except your time and travel costs perhaps?). There is no agenda either -- please note that the environment would be similar to that of an unconference. There is no formal teaching involved. We are all learners here and you are free to ask any python-related question. WHERE: The Centre for Internet and Society[3][4] (<--google map link) No. 194, 2nd 'C' Cross, Domlur 2nd Stage, Bangalore 560 071 WHEN: 7pm-8pm every Friday. We start from next week, 08Oct2010. So if you are interested in python, dont hesitate to join us for the weekly dojo sessions and do spread the word -- dent/tweet, blog and mail your friends about the weekly dojo meetups. PS: If anyone (women in particular) feels the evening timings are rather late for travelling please feel free to suggest a more convenient day (sat/sun?) and time <-- its not set in stone and suggestions are welcome. [0] http://dojorio.wordpress.com/about/ [1] http://translate.google.com/translate?hl=en&sl=pt&u=http://dojorio.wordpress.com/&ei=z7GyS7OtCIvYsgOAvqTMBA&sa=X&oi=translate&ct=result&resnum=1&ved=0CBQQ7gEwAA&prev=/search%3Fq%3Ddojorio%26hl%3Den%26prmd%3Dv [2] http://smallactsmanifesto.org/ [3] http://cis-india.org/about [4] http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=CIS-INDIA+Bangalore+560+071&sll=12.965029,77.637269&sspn=0.005792,0.011362&ie=UTF8&hq=&hnear=Centre+for+Internet+and+Society+(CIS),+2nd+Cross,+Bengaluru,+Karnataka+560071,+India&ll=12.964977,77.638772&spn=0.005792,0.011362&z=17 Thanks, Regards, vid ? http://svaksha.com -- Regards, vid ? http://svaksha.com From gopalakrishnan.subramani at gmail.com Sun Oct 3 05:58:17 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Sat, 2 Oct 2010 21:58:17 -0600 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: If you want to be too smart, Emacs is the best one for all your typing need. It works well on Windows/Macs/Linux/Unix operating system. pymacs enable you to detect the basic python related error in emacs. On Sat, Oct 2, 2010 at 9:34 AM, Vishal wrote: > if you are on Windows, try out PyScripter. I am sure you'll like it. > > Thanks and best regards, > Vishal Sapre > > On Sat, Oct 2, 2010 at 4:51 PM, Noufal Ibrahim wrote: > > > On Sat, Oct 02 2010, Dennis Varkey wrote: > > > > > I heard about python and found that it was very simple to code. > > > I would like to know any IDE's in which i can code python in windows > > > > [...] > > > > There should be something you're already comfortable with that has a > > plugin for Python. You should use that. Switching development > > environments completely for different languages doesn't seem very > > productive to me. > > > > -- > > _______________________________________________ > > 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? > "May we do good and not evil. May we find forgiveness for ourself and > forgive others. May we share freely, never taking more than we give." > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From kgthegreat at gmail.com Sun Oct 3 05:59:58 2010 From: kgthegreat at gmail.com (Kumar Gaurav) Date: Sun, 3 Oct 2010 09:29:58 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: On Sun, Oct 3, 2010 at 9:28 AM, Gopalakrishnan Subramani wrote: > If you want to be too smart, Emacs is the best one for all your typing need. > It works well on Windows/Macs/Linux/Unix operating system. > pymacs enable you to detect the basic python related error in emacs. > +1 -- Kumar Gaurav Latest Post -- Install mongo-db on Ubuntu http://wp.me/pbU2Q-37 From jeffjosejeff at gmail.com Sun Oct 3 09:36:23 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Sun, 3 Oct 2010 13:06:23 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: On Sun, Oct 3, 2010 at 9:28 AM, Gopalakrishnan Subramani < gopalakrishnan.subramani at gmail.com> wrote: > If you want to be too smart, Emacs is the best one for all your typing > need. > It works well on Windows/Macs/Linux/Unix operating system. > pymacs enable you to detect the basic python related error in emacs. %s/Emacs/Vim/g /jeff > > On Sat, Oct 2, 2010 at 9:34 AM, Vishal wrote: > > > if you are on Windows, try out PyScripter. I am sure you'll like it. > > > > Thanks and best regards, > > Vishal Sapre > > > > On Sat, Oct 2, 2010 at 4:51 PM, Noufal Ibrahim wrote: > > > > > On Sat, Oct 02 2010, Dennis Varkey wrote: > > > > > > > I heard about python and found that it was very simple to code. > > > > I would like to know any IDE's in which i can code python in windows > > > > > > [...] > > > > > > There should be something you're already comfortable with that has a > > > plugin for Python. You should use that. Switching development > > > environments completely for different languages doesn't seem very > > > productive to me. > > > > > > -- > > > _______________________________________________ > > > 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? > > "May we do good and not evil. May we find forgiveness for ourself and > > forgive others. May we share freely, never taking more than we give." > > _______________________________________________ > > 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 noufal at gmail.com Sun Oct 3 09:44:36 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 03 Oct 2010 13:14:36 +0530 Subject: [BangPypers] Beginner help In-Reply-To: (Jeffrey Jose's message of "Sun, 3 Oct 2010 13:06:23 +0530") References: <87tyl4vnzf.fsf@gmail.com> Message-ID: <87d3rrn2jf.fsf@gmail.com> On Sun, Oct 03 2010, Jeffrey Jose wrote: > On Sun, Oct 3, 2010 at 9:28 AM, Gopalakrishnan Subramani < > gopalakrishnan.subramani at gmail.com> wrote: > >> If you want to be too smart, Emacs is the best one for all your typing >> need. >> It works well on Windows/Macs/Linux/Unix operating system. >> pymacs enable you to detect the basic python related error in emacs. > > > %s/Emacs/Vim/g [...] >From the "Pragmatic Programmer" (http://www.codinghorror.com/blog/2004/10/a-pragmatic-quick-reference.html) > Use a Single Editor Well > > The editor should be an extension of your hand; make sure your editor is > configurable, extensible, and programmable. Specifics of whether it's Emacs, vim or something else are minutiae and best left to people with more time on their hands. -- From umar43 at gmail.com Sun Oct 3 09:53:31 2010 From: umar43 at gmail.com (Umar Shah) Date: Sun, 3 Oct 2010 13:23:31 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: vim with omnicomplete and taglist plugins, It will provide with code browsing as well as autocomplete features. On Sun, Oct 3, 2010 at 1:06 PM, Jeffrey Jose wrote: > On Sun, Oct 3, 2010 at 9:28 AM, Gopalakrishnan Subramani < > gopalakrishnan.subramani at gmail.com> wrote: > > > If you want to be too smart, Emacs is the best one for all your typing > > need. > > It works well on Windows/Macs/Linux/Unix operating system. > > pymacs enable you to detect the basic python related error in emacs. > > > %s/Emacs/Vim/g > > > /jeff > > > > > > > > On Sat, Oct 2, 2010 at 9:34 AM, Vishal wrote: > > > > > if you are on Windows, try out PyScripter. I am sure you'll like it. > > > > > > Thanks and best regards, > > > Vishal Sapre > > > > > > On Sat, Oct 2, 2010 at 4:51 PM, Noufal Ibrahim > wrote: > > > > > > > On Sat, Oct 02 2010, Dennis Varkey wrote: > > > > > > > > > I heard about python and found that it was very simple to code. > > > > > I would like to know any IDE's in which i can code python in > windows > > > > > > > > [...] > > > > > > > > There should be something you're already comfortable with that has a > > > > plugin for Python. You should use that. Switching development > > > > environments completely for different languages doesn't seem very > > > > productive to me. > > > > > > > > -- > > > > _______________________________________________ > > > > 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? > > > "May we do good and not evil. May we find forgiveness for ourself and > > > forgive others. May we share freely, never taking more than we give." > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From flowerslab at gmail.com Sun Oct 3 11:43:22 2010 From: flowerslab at gmail.com (Sathishkumar Duraisamy) Date: Sun, 3 Oct 2010 15:13:22 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: Hi, for pyqt, eric is good. On 10/3/10, Umar Shah wrote: > vim with omnicomplete and taglist plugins, > It will provide with code browsing as well as autocomplete features. > > > On Sun, Oct 3, 2010 at 1:06 PM, Jeffrey Jose > wrote: > >> On Sun, Oct 3, 2010 at 9:28 AM, Gopalakrishnan Subramani < >> gopalakrishnan.subramani at gmail.com> wrote: >> >> > If you want to be too smart, Emacs is the best one for all your typing >> > need. >> > It works well on Windows/Macs/Linux/Unix operating system. >> > pymacs enable you to detect the basic python related error in emacs. >> >> >> %s/Emacs/Vim/g >> >> >> /jeff >> >> >> >> >> > >> > On Sat, Oct 2, 2010 at 9:34 AM, Vishal wrote: >> > >> > > if you are on Windows, try out PyScripter. I am sure you'll like it. >> > > >> > > Thanks and best regards, >> > > Vishal Sapre >> > > >> > > On Sat, Oct 2, 2010 at 4:51 PM, Noufal Ibrahim >> wrote: >> > > >> > > > On Sat, Oct 02 2010, Dennis Varkey wrote: >> > > > >> > > > > I heard about python and found that it was very simple to code. >> > > > > I would like to know any IDE's in which i can code python in >> windows >> > > > >> > > > [...] >> > > > >> > > > There should be something you're already comfortable with that has >> > > > a >> > > > plugin for Python. You should use that. Switching development >> > > > environments completely for different languages doesn't seem very >> > > > productive to me. >> > > > >> > > > -- >> > > > _______________________________________________ >> > > > 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? >> > > "May we do good and not evil. May we find forgiveness for ourself and >> > > forgive others. May we share freely, never taking more than we give." >> > > _______________________________________________ >> > > BangPypers mailing list >> > > BangPypers at python.org >> > > http://mail.python.org/mailman/listinfo/bangpypers >> > > >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from my mobile device From avinashtm at gmail.com Sun Oct 3 14:28:29 2010 From: avinashtm at gmail.com (Avinash TM) Date: Sun, 3 Oct 2010 17:58:29 +0530 Subject: [BangPypers] install feedparser Message-ID: Hi all, I am newbie to Python. I wish to install feedparser in Eclipse environment, when i include line 'import feedparser' in eclipse , it is showing the error as 'Unresolved import:feedparser' but i had installed in terminal , and i can write simple small programs in terminal. I am using opensuse OS. can anyone help me. -Avinash From vnbang2003 at yahoo.com Sun Oct 3 14:52:44 2010 From: vnbang2003 at yahoo.com (vijay) Date: Sun, 3 Oct 2010 18:22:44 +0530 (IST) Subject: [BangPypers] install feedparser In-Reply-To: Message-ID: <199313.88905.qm@web95311.mail.in2.yahoo.com> Basically if you code inside src folder of eclipse project it will show below error. Just create folder at same level to src then you should be able to access it. ?Structure should be like this ?Project ????? - src ????? - new folder ???? - python? (pointing to you python path) Hope this help you. With Regards Vijay --- On Sun, 3/10/10, Avinash TM wrote: From: Avinash TM Subject: [BangPypers] install feedparser To: bangpypers at python.org Date: Sunday, 3 October, 2010, 5:58 PM Hi all, I am newbie to Python. I wish to install feedparser in Eclipse environment, when i include line 'import feedparser' in eclipse , it is showing the error as 'Unresolved import:feedparser' but i had installed in terminal , and i can write simple small programs in terminal. I am using opensuse OS. can anyone help me. -Avinash _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From avinashtm at gmail.com Sun Oct 3 15:13:52 2010 From: avinashtm at gmail.com (Avinash TM) Date: Sun, 3 Oct 2010 18:43:52 +0530 Subject: [BangPypers] feedparser Message-ID: How to install feedparser in 'eclipse environment' of python? -Avinash From noufal at gmail.com Sun Oct 3 15:22:17 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 03 Oct 2010 18:52:17 +0530 Subject: [BangPypers] feedparser In-Reply-To: (Avinash TM's message of "Sun, 3 Oct 2010 18:43:52 +0530") References: Message-ID: <87y6afl8c6.fsf@gmail.com> On Sun, Oct 03 2010, Avinash TM wrote: > How to install feedparser in 'eclipse environment' of python? [...] First thing (after you do an installation) is to make sure that it works properly in with the regular interpreter (honouring any virtualenv or other such settings you have). Once that's done, you can worry about configuring eclipse. Is it working in the interpreter? -- From avinashtm at gmail.com Mon Oct 4 05:46:40 2010 From: avinashtm at gmail.com (Avinash TM) Date: Mon, 4 Oct 2010 09:16:40 +0530 Subject: [BangPypers] Latest Cricket News in Command Line Message-ID: Hi All , I tried this simple code using 'feed parser'. May be you will find it useful. Am new to Python,any suggestions or new ideas on how we can improve this code. -Avinash _______________________________________________________________________________________ * * *Program : * #! /usr/bin/python import feedparser BBCCricketNews = feedparser.parse(' http://newsrss.bbc.co.uk/rss/sportplayer_uk_edition/cricket/rss.xml') CricinfoCricketNews = feedparser.parse(' http://www.cricinfo.com/rss/content/story/feeds/0.rss') X= input('BBC Cricket News:1 , Cricinfo Cricket News:2 \n enter your choice: ') i=1 if X==1: print "BBC Cricket news" while i <= 5: ptitle = BBCCricketNews.entries[i].title pdes=BBCCricketNews.entries[i].description purl=BBCCricketNews.entries[i].link print '%s.%s' %(i,a) print '%s' %(purl) print '%s' %(pdes) print '\n' i +=1 elif X==2: print "Cricinfo Cricket news" while i <= 5: ptitle=CricinfoCricketNews.entries[i].title pdes=CricinfoCricketNews.entries[i].description purl=CricinfoCricketNews.entries[i].link print '%s.%s' %(i,a) print '%s' %(purl) print '%s' %(pdes) print '\n' i +=1 ---------------------------------------------------------------------------------------------------------------------------------- *Sample output 1:* avinash at linux-qqbq:~/pyPrograms> ./LatestCricketNews.py BBC Cricket News:1 , Cricinfo Cricket News:2 enter your choice: 1 BBC Cricket news 1.Swann thrilled by 'dream' Ashes tour http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/9028868.stm Graeme Swann tells BBC Sport that a childhood dream has been realised after being named as part of England's squad for this winter's Ashes series in Australia. 2.Miller explains Ashes squad choices http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/9028456.stm England Chairman of selectors Geoff Miller says Ashes squad members Monty Panesar and Chris Tremlett derverve their place after improving their form in county cricket. 3.Broad confident of England victory http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/9027720.stm England bowler Stuart Broad is confident England have all the "attributes" to beat Australia in the upcoming Ashes Test series. From arulalant at gmail.com Mon Oct 4 09:19:26 2010 From: arulalant at gmail.com (Arulalan T) Date: Mon, 4 Oct 2010 12:49:26 +0530 Subject: [BangPypers] feedparser In-Reply-To: <87y6afl8c6.fsf@gmail.com> References: <87y6afl8c6.fsf@gmail.com> Message-ID: 2010/10/3 Noufal Ibrahim > On Sun, Oct 03 2010, Avinash TM wrote: > > > How to install feedparser in 'eclipse environment' of python? > > [...] > > First thing (after you do an installation) is to make sure that it works > properly in with the regular interpreter (honouring any virtualenv or > other such settings you have). Once that's done, you can worry about > configuring eclipse. > > Is it working in the interpreter? > If it is not working in regular interpreter, please do the following ( If you are using ubuntu/debian flavor ) sudo apt-get install python-setuptools sudo easy_install feedparser Now it should works fine. :-) > -- > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Arulalan.T Kanchi Linux User Group Rocks ! http://kanchilug.wordpress.com My Experiments In Linux are here http://tuxcoder.wordpress.com From gopalakrishnan.subramani at gmail.com Mon Oct 4 15:13:23 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Mon, 4 Oct 2010 07:13:23 -0600 Subject: [BangPypers] Latest Cricket News in Command Line In-Reply-To: References: Message-ID: I don't think, I will be giving you the complete working code, here is sample one. sites = { 0: "<>", 1: "<>" } X= input('BBC Cricket News:1 , Cricinfo Cricket News:2 \n enter your choice: ') if sites.has_key((int(X)): news_feed = feedparser.parse(sites[int(X)]) for entry in news_feed.entries: print "<>, entry.title, entry.description <> The above code may not work syntactically. Hope this helps. If you are ever interested knowing the latest cricket news, here is the link from my own site, http://stacked.in/cricket?section=sports Certainly writing your own parser would help you to build your knowledge..Have fun.. Regards, Krish http://stacked.in On Sun, Oct 3, 2010 at 9:46 PM, Avinash TM wrote: > Hi All , > I tried this simple code using 'feed parser'. May be you will find it > useful. > Am new to Python,any suggestions or new ideas on how we can improve this > code. > > -Avinash > > > > > _______________________________________________________________________________________ > * > * > *Program : * > > #! /usr/bin/python > import feedparser > > BBCCricketNews = feedparser.parse(' > http://newsrss.bbc.co.uk/rss/sportplayer_uk_edition/cricket/rss.xml') > CricinfoCricketNews = feedparser.parse(' > http://www.cricinfo.com/rss/content/story/feeds/0.rss') > > X= input('BBC Cricket News:1 , Cricinfo Cricket News:2 \n enter your > choice: > ') > i=1 > > if X==1: > print "BBC Cricket news" > while i <= 5: > ptitle = BBCCricketNews.entries[i].title > pdes=BBCCricketNews.entries[i].description > purl=BBCCricketNews.entries[i].link > print '%s.%s' %(i,a) > print '%s' %(purl) > print '%s' %(pdes) > print '\n' > i +=1 > > elif X==2: > print "Cricinfo Cricket news" > while i <= 5: > ptitle=CricinfoCricketNews.entries[i].title > pdes=CricinfoCricketNews.entries[i].description > purl=CricinfoCricketNews.entries[i].link > print '%s.%s' %(i,a) > print '%s' %(purl) > print '%s' %(pdes) > print '\n' > i +=1 > > ---------------------------------------------------------------------------------------------------------------------------------- > *Sample output 1:* > avinash at linux-qqbq:~/pyPrograms> ./LatestCricketNews.py > BBC Cricket News:1 , Cricinfo Cricket News:2 > enter your choice: 1 > BBC Cricket news > 1.Swann thrilled by 'dream' Ashes tour > http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/9028868.stm > Graeme Swann tells BBC Sport that a childhood dream has been realised after > being named as part of England's squad for this winter's Ashes series in > Australia. > > > 2.Miller explains Ashes squad choices > http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/9028456.stm > England Chairman of selectors Geoff Miller says Ashes squad members Monty > Panesar and Chris Tremlett derverve their place after improving their form > in county cricket. > > > 3.Broad confident of England victory > http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/9027720.stm > England bowler Stuart Broad is confident England have all the "attributes" > to beat Australia in the upcoming Ashes Test series. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From nitinkd at gmail.com Mon Oct 4 20:05:52 2010 From: nitinkd at gmail.com (Nitin Dahra) Date: Mon, 4 Oct 2010 23:35:52 +0530 Subject: [BangPypers] Latest Cricket News in Command Line In-Reply-To: References: Message-ID: On 4 October 2010 18:43, Gopalakrishnan Subramani wrote: > I don't think, I will be giving you the complete working code, here is > sample one. > > sites = { > 0: "<>", > 1: "<>" > } > > X= input('BBC Cricket News:1 , Cricinfo Cricket News:2 \n enter your choice: > ') > > if sites.has_key((int(X)): has_key function for dicts is deprecated and not present in 3.x at all. Just use - int(X) in sites Apparently, 'in' is also faster than 'has_key' Regards, Nitin From noufal at gmail.com Mon Oct 4 20:34:14 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 05 Oct 2010 00:04:14 +0530 Subject: [BangPypers] Latest Cricket News in Command Line In-Reply-To: (Nitin Dahra's message of "Mon, 4 Oct 2010 23:35:52 +0530") References: Message-ID: <87aamtdcyh.fsf@gmail.com> On Mon, Oct 04 2010, Nitin Dahra wrote: [...] > Apparently, 'in' is also faster than 'has_key' [...] A few quick numbers. In [2]: foo = {} # Without the key In [12]: timeit.timeit(lambda: 2 in foo) Out[12]: 0.2220299243927002 In [13]: timeit.timeit(lambda: foo.has_key(2)) Out[13]: 0.32393407821655273 In [14]: foo = {2 : "Hello"} # With the key In [15]: timeit.timeit(lambda: 2 in foo) Out[15]: 0.21776700019836426 In [16]: timeit.timeit(lambda: foo.has_key(2)) Out[16]: 0.3091580867767334 Also, "in" works for iterables other than dict's whereas has_key doesn't. Better duck typing. -- From umar43 at gmail.com Mon Oct 4 20:43:29 2010 From: umar43 at gmail.com (Umar Shah) Date: Tue, 5 Oct 2010 00:13:29 +0530 Subject: [BangPypers] Latest Cricket News in Command Line In-Reply-To: <87aamtdcyh.fsf@gmail.com> References: <87aamtdcyh.fsf@gmail.com> Message-ID: On Tue, Oct 5, 2010 at 12:04 AM, Noufal Ibrahim wrote: > On Mon, Oct 04 2010, Nitin Dahra wrote: > > [...] > > > > Apparently, 'in' is also faster than 'has_key' > > [...] > > A few quick numbers. > > In [2]: foo = {} # Without the key > In [12]: timeit.timeit(lambda: 2 in foo) > Out[12]: 0.2220299243927002 > > In [13]: timeit.timeit(lambda: foo.has_key(2)) > Out[13]: 0.32393407821655273 > > In [14]: foo = {2 : "Hello"} # With the key > > In [15]: timeit.timeit(lambda: 2 in foo) > Out[15]: 0.21776700019836426 > > In [16]: timeit.timeit(lambda: foo.has_key(2)) > Out[16]: 0.3091580867767334 > > > Also, "in" works for iterables other than dict's whereas has_key > doesn't. Better duck typing. > > thanks for the quick stats, although i prefer in for the type compatibility now i have 1 more reason in favour of using in :) -- > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Mon Oct 4 20:57:42 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 05 Oct 2010 00:27:42 +0530 Subject: [BangPypers] Latest Cricket News in Command Line In-Reply-To: (Umar Shah's message of "Tue, 5 Oct 2010 00:13:29 +0530") References: <87aamtdcyh.fsf@gmail.com> Message-ID: <871v85dbvd.fsf@gmail.com> On Tue, Oct 05 2010, Umar Shah wrote: [...] >> thanks for the quick stats, although i prefer in for the type >> compatibility > now i have 1 more reason in favour of using in :) [...] People talk about Pythonicity and one of the ways to quantify it is to say that "something is Pythonic if the more experienced Pythonistas use it". The features that are used by the old timers are likely to be optimised more than the others. Because of this, timeit is a good rule of thumb to figure out whether something is pythonic or not. -- From vikram.kmth at gmail.com Tue Oct 5 00:23:20 2010 From: vikram.kmth at gmail.com (Vikram Kamath) Date: Tue, 5 Oct 2010 03:53:20 +0530 Subject: [BangPypers] BangPypers Digest, Vol 38, Issue 2 In-Reply-To: References: Message-ID: Well...rather than an IDE, you should probably just use a good python editor and then use the command line.The 2 best python editors (in my opinion are) 1.Jedit http://www.jedit.org/index.php?page=download 2.Kate http://kate-editor.org/ On Sat, Oct 2, 2010 at 3:30 PM, wrote: > 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. Beginner help (Dennis Varkey) > 2. Re: Beginner help (delegbede at dudupay.com) > 3. Re: Beginner help (Senthil Kumaran) > 4.Re: Beginner help (Vikram Kamath) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 2 Oct 2010 14:57:54 +0530 > From: Dennis Varkey > To: bangpypers at python.org > Subject: [BangPypers] Beginner help > Message-ID: > > > > Content-Type: text/plain; charset=ISO-8859-1 > > I heard about python and found that it was very simple to code. > I would like to know any IDE's in which i can code python in windows > > > ------------------------------ > > Message: 2 > Date: Sat, 2 Oct 2010 09:30:29 +0000 > From: delegbede at dudupay.com > To: "Bangalore Python Users Group - India" > Subject: Re: [BangPypers] Beginner help > Message-ID: > > <603797363-1286011829-cardhu_decombobulator_blackberry.rim.net-1750980014- at bda2349.bisx.produk.on.blackberry > > > > Content-Type: text/plain > > Textpad or notepad++ should do. One comes with python itself. > Sent from my BlackBerry wireless device from MTN > > -----Original Message----- > From: Dennis Varkey > Sender: bangpypers-bounces+delegbede=dudupay.com at python.org > Date: Sat, 2 Oct 2010 14:57:54 > To: > Reply-To: Bangalore Python Users Group - India > Subject: [BangPypers] Beginner help > > I heard about python and found that it was very simple to code. > I would like to know any IDE's in which i can code python in windows > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > > ------------------------------ > > Message: 3 > Date: Sat, 2 Oct 2010 15:01:00 +0530 > From: Senthil Kumaran > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Beginner help > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On Sat, Oct 2, 2010 at 2:57 PM, Dennis Varkey wrote: > > I heard about python and found that it was very simple to code. > > I would like to know any IDE's in which i can code python in windows > > Download ActiveState Python and use the IDE which comes along with it. > It is called PythonWin IDE. > > Also, have a look at article: > http://wiki.python.org/moin/IntegratedDevelopmentEnvironments > > -- > Senthil > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 38, Issue 2 > ***************************************** > From cranil89 at gmail.com Tue Oct 5 08:54:12 2010 From: cranil89 at gmail.com (Anil C R) Date: Tue, 5 Oct 2010 12:24:12 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: I would say no IDE... IMO it's not very good starting to learn a language with an IDE. Been long since I wrote code in Windows but you should have nice ones Notepad++ was nice. Anil, PS: do not send me mails if you do this: http://theoatmeal.com/comics/email From jaganadhg at gmail.com Tue Oct 5 08:58:40 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Tue, 5 Oct 2010 12:28:40 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: On Tue, Oct 5, 2010 at 12:24 PM, Anil C R wrote: > I would say no IDE... IMO it's not very good starting to learn a language > with an IDE. Been long since I wrote code in Windows but you should have > nice ones Notepad++ was nice. > > Which IDE is good for Python is a difficult question I observed that there is a long discussion happening in LinkedIn Python discussiongroup regarding the same. Runs over more than 250 threads -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From ramdaz at gmail.com Tue Oct 5 09:03:23 2010 From: ramdaz at gmail.com (Ramdas S) Date: Tue, 5 Oct 2010 12:33:23 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: On Tue, Oct 5, 2010 at 12:28 PM, JAGANADH G wrote: > On Tue, Oct 5, 2010 at 12:24 PM, Anil C R wrote: > >> I would say no IDE... IMO it's not very good starting to learn a language >> with an IDE. Been long since I wrote code in Windows but you should have >> nice ones Notepad++ was nice. >> >> Which IDE is good for Python is a difficult question > I observed that there is a long discussion happening in LinkedIn Python > discussiongroup regarding the same. Runs over more than 250 threads > -- > ********************************** > JAGANADH G > http://jaganadhg.freeflux.net/blog > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > I've recently started using Aptana community edition 3 beta with Pydev. I used to use scite a text editor before. I cannot quite claim any major gains, but then as an expert developer told me on IRC, an IDE grows on you, you need to give yourself some time to master it. I'd recommend it a try based on my experience -- Ramdas S +91 9342 583 065 From brijithp at gmail.com Tue Oct 5 09:15:04 2010 From: brijithp at gmail.com (BR!j!TH) Date: Tue, 5 Oct 2010 12:45:04 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: Hi all, is this Aptana a free software.. do we have need to purchase it for using it ? * Regrads, Brijith P ** * On 5 October 2010 12:33, Ramdas S wrote: > On Tue, Oct 5, 2010 at 12:28 PM, JAGANADH G wrote: > > On Tue, Oct 5, 2010 at 12:24 PM, Anil C R wrote: > > > >> I would say no IDE... IMO it's not very good starting to learn a > language > >> with an IDE. Been long since I wrote code in Windows but you should have > >> nice ones Notepad++ was nice. > >> > >> Which IDE is good for Python is a difficult question > > I observed that there is a long discussion happening in LinkedIn Python > > discussiongroup regarding the same. Runs over more than 250 threads > > -- > > ********************************** > > JAGANADH G > > http://jaganadhg.freeflux.net/blog > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > I've recently started using Aptana community edition 3 beta with > Pydev. I used to use scite a text editor before. I cannot quite claim > any major gains, but then as an expert developer told me on IRC, an > IDE grows on you, you need to give yourself some time to master it. > > I'd recommend it a try based on my experience > > -- > Ramdas S > +91 9342 583 065 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From kausikram at gmail.com Tue Oct 5 11:19:52 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Tue, 5 Oct 2010 14:49:52 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: On Sat, Oct 2, 2010 at 9:04 PM, Vishal wrote: > if you are on Windows, try out PyScripter. I am sure you'll like it. > +1 -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.in | Blog: blog.kausikram.in | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From radhakrishna12 at gmail.com Wed Oct 6 06:06:56 2010 From: radhakrishna12 at gmail.com (Radhakrishna Bhat) Date: Wed, 6 Oct 2010 09:36:56 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: Aptana may not be free. But the PyDev plugin for Eclipse is free. On Tue, Oct 5, 2010 at 12:45 PM, BR!j!TH wrote: > Hi all, > > is this Aptana a free software.. do we have need to purchase it for using > it > ? > > * > Regrads, > > Brijith P > ** > * > On 5 October 2010 12:33, Ramdas S wrote: > > > On Tue, Oct 5, 2010 at 12:28 PM, JAGANADH G wrote: > > > On Tue, Oct 5, 2010 at 12:24 PM, Anil C R wrote: > > > > > >> I would say no IDE... IMO it's not very good starting to learn a > > language > > >> with an IDE. Been long since I wrote code in Windows but you should > have > > >> nice ones Notepad++ was nice. > > >> > > >> Which IDE is good for Python is a difficult question > > > I observed that there is a long discussion happening in LinkedIn Python > > > discussiongroup regarding the same. Runs over more than 250 threads > > > -- > > > ********************************** > > > JAGANADH G > > > http://jaganadhg.freeflux.net/blog > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > I've recently started using Aptana community edition 3 beta with > > Pydev. I used to use scite a text editor before. I cannot quite claim > > any major gains, but then as an expert developer told me on IRC, an > > IDE grows on you, you need to give yourself some time to master it. > > > > I'd recommend it a try based on my experience > > > > -- > > Ramdas S > > +91 9342 583 065 > > _______________________________________________ > > 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 ramdaz at gmail.com Wed Oct 6 06:17:38 2010 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 6 Oct 2010 09:47:38 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: On Wed, Oct 6, 2010 at 9:36 AM, Radhakrishna Bhat wrote: > Aptana may not be free. But the PyDev plugin for Eclipse is free. > Aptana is released under GPL also, and under a dual licensing model. Please check this link http://aptana.com/legal From santrajan at gmail.com Wed Oct 6 06:40:46 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 6 Oct 2010 10:10:46 +0530 Subject: [BangPypers] Beginner help In-Reply-To: References: <87tyl4vnzf.fsf@gmail.com> Message-ID: Just my 0.02$. I find Komodo Edit a great editor and it is free. Though the Komodo IDE is not. I used to use Notepad++ before that. On Wed, Oct 6, 2010 at 9:47 AM, Ramdas S wrote: > On Wed, Oct 6, 2010 at 9:36 AM, Radhakrishna Bhat > wrote: > > > Aptana may not be free. But the PyDev plugin for Eclipse is free. > > > > > Aptana is released under GPL also, and under a dual licensing model. Please > check this link http://aptana.com/legal > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From delegbede at dudupay.com Wed Oct 6 11:36:38 2010 From: delegbede at dudupay.com (Dipo Elegbede) Date: Wed, 6 Oct 2010 10:36:38 +0100 Subject: [BangPypers] cgi help Message-ID: here is the code as pasted on pastebin: http://pastebin.com/K2Fxq6ac please help. It only returns the header and a blank page. -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development From anandology at gmail.com Wed Oct 6 11:48:38 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 6 Oct 2010 15:18:38 +0530 Subject: [BangPypers] cgi help In-Reply-To: References: Message-ID: 2010/10/6 Dipo Elegbede : > here is the code as pasted on pastebin: > > http://pastebin.com/K2Fxq6ac > > please help. > > It only returns the header and a blank page. > There is an error in your program. Try running the program directly with python to see the error. Anand From delegbede at dudupay.com Wed Oct 6 11:51:34 2010 From: delegbede at dudupay.com (delegbede at dudupay.com) Date: Wed, 6 Oct 2010 09:51:34 +0000 Subject: [BangPypers] cgi help In-Reply-To: References: Message-ID: <65066213-1286358693-cardhu_decombobulator_blackberry.rim.net-760242451-@bda2349.bisx.produk.on.blackberry> I'm on it Mate. Thanks. Sent from my BlackBerry wireless device from MTN -----Original Message----- From: Anand Chitipothu Sender: bangpypers-bounces+delegbede=dudupay.com at python.org Date: Wed, 6 Oct 2010 15:18:38 To: Bangalore Python Users Group - India Reply-To: Bangalore Python Users Group - India Subject: Re: [BangPypers] cgi help 2010/10/6 Dipo Elegbede : > here is the code as pasted on pastebin: > > http://pastebin.com/K2Fxq6ac > > please help. > > It only returns the header and a blank page. > There is an error in your program. Try running the program directly with python to see the error. Anand _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From lawgon at au-kbc.org Wed Oct 6 12:03:04 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 06 Oct 2010 15:33:04 +0530 Subject: [BangPypers] cgi help In-Reply-To: References: Message-ID: <1286359384.2077.491.camel@localhost> On Wed, 2010-10-06 at 10:36 +0100, Dipo Elegbede wrote: > here is the code as pasted on pastebin: > > http://pastebin.com/K2Fxq6ac > > please help. > > It only returns the header and a blank page. one error is that lines 19 and 20 should be unindented. The other error, I cannot understand - it says: 'module does not have attribute escape', if the cgi.escape() wrapper is removed the code runs. But cgi module *does* have an escape - so why this error? -- regards Kenneth Gonsalves From lawgon at au-kbc.org Wed Oct 6 12:15:35 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 06 Oct 2010 15:45:35 +0530 Subject: [BangPypers] cgi help In-Reply-To: <1286359384.2077.491.camel@localhost> References: <1286359384.2077.491.camel@localhost> Message-ID: <1286360135.2077.496.camel@localhost> On Wed, 2010-10-06 at 15:33 +0530, Kenneth Gonsalves wrote: > > It only returns the header and a blank page. > > one error is that lines 19 and 20 should be unindented. The other > error, > I cannot understand - it says: > 'module does not have attribute escape', if the cgi.escape() wrapper > is > removed the code runs. But cgi module *does* have an escape - so why > this error? weird, this works: >>> print cgi.escape("abc") abc but it does not work in this code snippet: #!/usr/bin/env python import cgi print cgi.escape("abc") -- regards Kenneth Gonsalves From anandology at gmail.com Wed Oct 6 12:17:43 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 6 Oct 2010 15:47:43 +0530 Subject: [BangPypers] cgi help In-Reply-To: <1286360135.2077.496.camel@localhost> References: <1286359384.2077.491.camel@localhost> <1286360135.2077.496.camel@localhost> Message-ID: 2010/10/6 Kenneth Gonsalves : > On Wed, 2010-10-06 at 15:33 +0530, Kenneth Gonsalves wrote: >> > It only returns the header and a blank page. >> >> one error is that lines 19 and 20 should be unindented. The other >> error, >> I cannot understand - it says: >> 'module does not have attribute escape', if the cgi.escape() wrapper >> is >> removed the code runs. But cgi module *does* have an escape - so why >> this error? > > weird, this works: >>>> print cgi.escape("abc") > abc > > but it does not work in this code snippet: > > #!/usr/bin/env python > import cgi > > print cgi.escape("abc") What is the name of your script? From delegbede at dudupay.com Wed Oct 6 12:22:32 2010 From: delegbede at dudupay.com (delegbede at dudupay.com) Date: Wed, 6 Oct 2010 10:22:32 +0000 Subject: [BangPypers] cgi help In-Reply-To: <1286360135.2077.496.camel@localhost> References: <1286359384.2077.491.camel@localhost><1286360135.2077.496.camel@localhost> Message-ID: <734801706-1286360551-cardhu_decombobulator_blackberry.rim.net-142833551-@bda2349.bisx.produk.on.blackberry> Got it fixed. Thanks y'all. I defined a variable out of scope. I ran it on my IDE to discover it. rowNumber was out of scope. Regards. Sent from my BlackBerry wireless device from MTN -----Original Message----- From: Kenneth Gonsalves Sender: bangpypers-bounces+delegbede=dudupay.com at python.org Date: Wed, 06 Oct 2010 15:45:35 To: Bangalore Python Users Group - India Reply-To: Bangalore Python Users Group - India Subject: Re: [BangPypers] cgi help On Wed, 2010-10-06 at 15:33 +0530, Kenneth Gonsalves wrote: > > It only returns the header and a blank page. > > one error is that lines 19 and 20 should be unindented. The other > error, > I cannot understand - it says: > 'module does not have attribute escape', if the cgi.escape() wrapper > is > removed the code runs. But cgi module *does* have an escape - so why > this error? weird, this works: >>> print cgi.escape("abc") abc but it does not work in this code snippet: #!/usr/bin/env python import cgi print cgi.escape("abc") -- regards Kenneth Gonsalves _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From lawgon at au-kbc.org Wed Oct 6 12:38:42 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 06 Oct 2010 16:08:42 +0530 Subject: [BangPypers] cgi help In-Reply-To: References: <1286359384.2077.491.camel@localhost> <1286360135.2077.496.camel@localhost> Message-ID: <1286361522.2077.497.camel@localhost> On Wed, 2010-10-06 at 15:47 +0530, Anand Chitipothu wrote: > > #!/usr/bin/env python > > import cgi > > > > print cgi.escape("abc") > > What is the name of your script? I am an idiot - it is named cgi.py -- regards Kenneth Gonsalves From noufal at gmail.com Wed Oct 6 12:48:05 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 06 Oct 2010 16:18:05 +0530 Subject: [BangPypers] cgi help In-Reply-To: <734801706-1286360551-cardhu_decombobulator_blackberry.rim.net-142833551-@bda2349.bisx.produk.on.blackberry> (delegbede@dudupay.com's message of "Wed, 6 Oct 2010 10:22:32 +0000") References: <1286359384.2077.491.camel@localhost> <1286360135.2077.496.camel@localhost> <734801706-1286360551-cardhu_decombobulator_blackberry.rim.net-142833551-@bda2349.bisx.produk.on.blackberry> Message-ID: <874ocz1tsq.fsf@gmail.com> On Wed, Oct 06 2010, delegbede at dudupay.com wrote: > Got it fixed. > Thanks y'all. > > I defined a variable out of scope. > I ran it on my IDE to discover it. > rowNumber was out of scope. [...] Put the following line import cgitb ;cgitb.enable() at the top of your file if you're using it as a CGI. Any tracebacks will be reported as nicely formatted HTML. Also, Python CGI is a really archaic way to go. The interpreter startup time is quite high. If you *must* use CGI, consider another language like Perl. -- From orsenthil at gmail.com Wed Oct 6 12:57:55 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 6 Oct 2010 16:27:55 +0530 Subject: [BangPypers] cgi help In-Reply-To: <874ocz1tsq.fsf@gmail.com> References: <1286359384.2077.491.camel@localhost> <1286360135.2077.496.camel@localhost> <734801706-1286360551-cardhu_decombobulator_blackberry.rim.net-142833551-@bda2349.bisx.produk.on.blackberry> <874ocz1tsq.fsf@gmail.com> Message-ID: <20101006105754.GA4100@remy> On Wed, Oct 06, 2010 at 04:18:05PM +0530, Noufal Ibrahim wrote: > Also, Python CGI is a really archaic way to go. Yes, this is true. The modern way of doing this is called WSGI, which is not as easy as CGI to being with, but people do get used to it. > The interpreter startup > time is quite high. If you *must* use CGI, consider another language > like Perl. Even for Perl, you will have to load the interpretor. So, it is a heavy weight operation if you involve any scripting language. I just got curious to see if this heavy weight operation can be reduced. Looks like it can be. >From wikipedia: The overhead involved in interpretation may be reduced by using compiled CGI programs, such as those in C/C++, rather than using Perl or other scripting languages. The overhead involved in process creation can be reduced by solutions such as FastCGI, or by running the application code entirely within the web server using special extension modules. -- Senthil It is better to die on your feet than to live on your knees. From noufal at gmail.com Wed Oct 6 13:27:15 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 06 Oct 2010 16:57:15 +0530 Subject: [BangPypers] cgi help In-Reply-To: <20101006105754.GA4100@remy> (Senthil Kumaran's message of "Wed, 6 Oct 2010 16:27:55 +0530") References: <1286359384.2077.491.camel@localhost> <1286360135.2077.496.camel@localhost> <734801706-1286360551-cardhu_decombobulator_blackberry.rim.net-142833551-@bda2349.bisx.produk.on.blackberry> <874ocz1tsq.fsf@gmail.com> <20101006105754.GA4100@remy> Message-ID: <87k4lvzhm4.fsf@gmail.com> [...] > Even for Perl, you will have to load the interpretor. So, it is a > heavy weight operation if you involve any scripting language. "Loading the interpreter" is a general term. Interpreters do various things when they start which can significantly affect performance (searching module include paths is one example). I tried some rudimentary comparisons and found this. noufal at sanitarium% time ~/perl.sh ~/perl.sh 1.11s user 0.84s system 98% cpu 1.976 total noufal at sanitarium% time ~/python.sh ~/python.sh 8.53s user 3.08s system 98% cpu 11.792 total The programs are shown below (let me know if the program semantics are significantly different). perl.sh ------- for i in $(seq 1 1000) do perl -e ';' done python.sh --------- for i in $(seq 1 1000) do python -c 'pass' # Similar results with python -c '' done Also, changing the invocation to python -EsS -c 'pass' (i.e. no PYTHON* envars, no user site-packages directory and no "import site") speeds it up a significantly. noufal at sanitarium% time ~/python.sh ~/python.sh 3.55s user 1.85s system 99% cpu 5.428 total Even with this, perl has a better startup time so if that is a concern, and you *must* use CGI, that'd be the way to go. I'm quite sure that if you're going that route, PHP will be even faster given it's integration into apache. The takeaway, I think, is use the right tool for the job. [...] -- From orsenthil at gmail.com Wed Oct 6 14:23:43 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 6 Oct 2010 17:53:43 +0530 Subject: [BangPypers] cgi help In-Reply-To: <87k4lvzhm4.fsf@gmail.com> References: <1286359384.2077.491.camel@localhost> <1286360135.2077.496.camel@localhost> <734801706-1286360551-cardhu_decombobulator_blackberry.rim.net-142833551-@bda2349.bisx.produk.on.blackberry> <874ocz1tsq.fsf@gmail.com> <20101006105754.GA4100@remy> <87k4lvzhm4.fsf@gmail.com> Message-ID: <20101006122343.GA7717@remy> On Wed, Oct 06, 2010 at 04:57:15PM +0530, Noufal Ibrahim wrote: > > "Loading the interpreter" is a general term. Interpreters do various > things when they start which can significantly affect performance > (searching module include paths is one example). CGI scripts have be to executed by an interpreter process. And CGI handling webserver modules, like mod_python/mod_perl invoke an interpreter instance as process for handling each request. The blurb from the Wikpedia did mention about what I was trying to say as heavy weight operation. http://en.wikipedia.org/wiki/Common_Gateway_Interface#Drawbacks And better way in Python at the moment is WSGI. The perl vs python comparison on shell is interesting and could be due to variety of reasons, but I am not sure if this performance comparison is conclusive for using perl on webserver instead of python. I have not come across this argument earlier. If it is something which people consider, it would be interesting to know. Perl+CGI has been there and is quite mature, that could be a probable argument. -- Senthil From noufal at gmail.com Wed Oct 6 14:52:33 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 06 Oct 2010 18:22:33 +0530 Subject: [BangPypers] cgi help In-Reply-To: <20101006122343.GA7717@remy> (Senthil Kumaran's message of "Wed, 6 Oct 2010 17:53:43 +0530") References: <1286359384.2077.491.camel@localhost> <1286360135.2077.496.camel@localhost> <734801706-1286360551-cardhu_decombobulator_blackberry.rim.net-142833551-@bda2349.bisx.produk.on.blackberry> <874ocz1tsq.fsf@gmail.com> <20101006105754.GA4100@remy> <87k4lvzhm4.fsf@gmail.com> <20101006122343.GA7717@remy> Message-ID: <87vd5f7ab2.fsf@gmail.com> On Wed, Oct 06 2010, Senthil Kumaran wrote: > On Wed, Oct 06, 2010 at 04:57:15PM +0530, Noufal Ibrahim wrote: >> >> "Loading the interpreter" is a general term. Interpreters do various >> things when they start which can significantly affect performance >> (searching module include paths is one example). > > CGI scripts have be to executed by an interpreter process. And CGI > handling webserver modules, like mod_python/mod_perl invoke an > interpreter instance as process for handling each request. > > The blurb from the Wikpedia did mention about what I was trying to say > as heavy weight operation. > > http://en.wikipedia.org/wiki/Common_Gateway_Interface#Drawbacks > > And better way in Python at the moment is WSGI. Definitely. I totally agree with you. However, if (for whatever reason), you have to use CGI, perl outperforms python. CGI is not all bad news either. One nice thing for example is that memory leaks and stuff, if there, will last only for one single request and won't really hurt the webserver as opposed to with a persistent process where they will accumulate. Ian Bicking talked about some of these over here http://blog.ianbicking.org/2008/01/12/what-php-deployment-gets-right/ > The perl vs python comparison on shell is interesting and could be due > to variety of reasons, but I am not sure if this performance > comparison is conclusive for using perl on webserver instead of > python. I have not come across this argument earlier. If it is > something which people consider, it would be interesting to know. If I needed low startup times, I'd think twice before using python. It's getting better over the years but thanks to the perl attitude of sacrificing clarity and legibility for performance, they have a really fast (and unmaintainable) interpreter. I don't think it's conclusive but I'd be willing to bet that a simple page served using cgi using Python and Perl would perform quite differently based on this alone. I've been bitten by this repeatedly at my previous workplace. The fact that the Python site-packages were served off an NFS mount didn't help either. > Perl+CGI has been there and is quite mature, that could be a probable > argument. That's quite possible. I personally quite like perl in some situations and still indulge from time to time. :) -- From avinashtm at gmail.com Thu Oct 7 07:03:46 2010 From: avinashtm at gmail.com (Avinash TM) Date: Thu, 7 Oct 2010 10:33:46 +0530 Subject: [BangPypers] Generating rss feeds, feed genetation Message-ID: Hi all, So far i learnt few things about how to parse the feeds using feedparser. Now i would like to know much about 'creating rss feeds and rss feed generation using *python*'. But i didn't get any good simple examples or referring sites in internet. So please suggest me. Thanks & Regards Avinash From gora at mimirtech.com Thu Oct 7 11:59:34 2010 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 7 Oct 2010 15:29:34 +0530 Subject: [BangPypers] Generating rss feeds, feed genetation In-Reply-To: References: Message-ID: On Thu, Oct 7, 2010 at 10:33 AM, Avinash TM wrote: > Hi all, > So far i learnt few things about how to parse the feeds using feedparser. > Now i would like to know much about 'creating rss feeds and rss feed > generation using *python*'. > But i didn't get any good simple examples or referring sites in internet. > So please suggest me. [...] How did you search? Searching for "python rss feed generator" turns up many likely-looking links. Haven't used a pure Python RSS feed generator (generally use Django facilities for this), but people seem to recommend http://www.dalkescientific.com/Python/PyRSS2Gen.html Regards, Gora From aditya.sahay at gmail.com Thu Oct 7 12:09:45 2010 From: aditya.sahay at gmail.com (Aditya Sahay) Date: Thu, 7 Oct 2010 15:39:45 +0530 Subject: [BangPypers] (no subject) References: <7A64CA98-13D9-4E54-B938-48EE7EB5E9B3@gmail.com> Message-ID: RSS feed is simply some data decorated by appropriate RSS tags. In other words, 1. fetch the data (newest first) using whatever framework you're using, 2. write the tags around them in a function or use some template engine (comes in many python frameworks as well as standalone), 3. return this xml whenever a url is called Not much work if you are up-to-speed in any web framework. From noufal at gmail.com Thu Oct 7 12:49:03 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 07 Oct 2010 16:19:03 +0530 Subject: [BangPypers] (no subject) In-Reply-To: (Aditya Sahay's message of "Thu, 7 Oct 2010 15:39:45 +0530") References: <7A64CA98-13D9-4E54-B938-48EE7EB5E9B3@gmail.com> Message-ID: <878w2ai8gw.fsf@gmail.com> Please use an appropriate subject line when you're mailing the list. Replying to the email you're answering helps as well since it maintains the conversation thread. On Thu, Oct 07 2010, Aditya Sahay wrote: > RSS feed is simply some data decorated by appropriate RSS tags. In other words, > 1. fetch the data (newest first) using whatever framework you're using, > 2. write the tags around them in a function or use some template engine (comes in many python frameworks as well as standalone), > 3. return this xml whenever a url is called > > Not much work if you are up-to-speed in any web framework. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From noufal at gmail.com Sat Oct 9 06:45:28 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 09 Oct 2010 10:15:28 +0530 Subject: [BangPypers] [OT] PyCon India video upload help needed Message-ID: <87tykwt1nb.fsf@gmail.com> Hello everyone, I will be getting the videos of the talks at the recent PyCon we conducted here. There will be quite a few videos to upload so if a few people come forward, meet me somewhere in the city, take a DVD from me and upload the videos to blip.tv, it would be speed up the process considerably. If anyone can help out, please call me directly. My phone number is on the sponsors page on the website (http://in.pycon.org/2010/sponsors) Thanks. -- ~noufal http://nibrahim.net.in From nitin.nitp at gmail.com Sat Oct 9 08:37:23 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Sat, 9 Oct 2010 12:07:23 +0530 Subject: [BangPypers] How to retrieve file from another server using Python Message-ID: Hi all, I want to fetch/copy one file from a server. what all things i can do for the same? Plz help -- Nitin K From noufal at gmail.com Sat Oct 9 09:09:06 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 09 Oct 2010 12:39:06 +0530 Subject: [BangPypers] How to retrieve file from another server using Python In-Reply-To: (Nitin Kumar's message of "Sat, 9 Oct 2010 12:07:23 +0530") References: Message-ID: <87k4lru9kd.fsf@gmail.com> On Sat, Oct 09 2010, Nitin Kumar wrote: > Hi all, > > I want to fetch/copy one file from a server. > what all things i can do for the same? Plz help You can go to the server, burn the file onto a DVD, bring the DVD back to your machine and copy the file onto your hard disk. That's what I'd do if the file sizes were over a 2 or 3 GB and if I had access to the server. Your question is a little vague. Can you be a little more specific? http://www.catb.org/esr/faqs/smart-questions.html#beprecise -- ~noufal http://nibrahim.net.in From sudheer.s at sudheer.net Sat Oct 9 10:44:09 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Sat, 09 Oct 2010 14:14:09 +0530 Subject: [BangPypers] How to retrieve file from another server using Python In-Reply-To: References: Message-ID: <4CB02B59.3080905@sudheer.net> On 10/09/2010 12:07 PM, Nitin Kumar wrote: > Hi all, > > I want to fetch/copy one file from a server. > what all things i can do for the same? Plz help > > Using Python you can connect to the server using various protocols - FTP, HTTP, SSH, etc. Serve the file on the server using any of these methods. The client code would just be a snippet. -- Sudheer Satyanarayana Binary Vibes Information Technologies Pvt. Ltd. Postal Address: #506, 10th B Main Road, I Block, Jayanagar, Bangalore ? 560 011 URL : www.binaryvibes.co.in Phone: +91 80 41558451 * Mobile: +91 99005 07499 Community : http://techchorus.net From aditya.sahay at gmail.com Sat Oct 9 16:15:03 2010 From: aditya.sahay at gmail.com (Aditya Sahay) Date: Sat, 9 Oct 2010 19:45:03 +0530 Subject: [BangPypers] How to retrieve file from another server using Python (Nitin Kumar) In-Reply-To: References: Message-ID: <06E0558E-22C4-4043-872C-C23B8D7A6295@gmail.com> urlretrieve should work for you. From kunal.t2 at gmail.com Sat Oct 9 17:45:19 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Sat, 09 Oct 2010 21:15:19 +0530 Subject: [BangPypers] [OT] PyCon India video upload help needed In-Reply-To: <87tykwt1nb.fsf@gmail.com> References: <87tykwt1nb.fsf@gmail.com> Message-ID: <4CB08E0F.8010801@gmail.com> On 10/09/2010 10:15 AM, Noufal Ibrahim wrote: > Hello everyone, > I will be getting the videos of the talks at the recent PyCon we > conducted here. There will be quite a few videos to upload so if a few > people come forward, meet me somewhere in the city, take a DVD from me > and upload the videos to blip.tv, it would be speed up the process > considerably. > > If anyone can help out, please call me directly. My phone number > is on the sponsors page on the website (http://in.pycon.org/2010/sponsors) > > Thanks. > If you do not mind, i can upload the videos to our college server it would be much easier, and save on some bandwidth costs as well. regards, Kunal From noufal at gmail.com Sat Oct 9 18:24:06 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 09 Oct 2010 21:54:06 +0530 Subject: [BangPypers] [OT] PyCon India video upload help needed In-Reply-To: <4CB08E0F.8010801@gmail.com> (kunal ghosh's message of "Sat, 09 Oct 2010 21:15:19 +0530") References: <87tykwt1nb.fsf@gmail.com> <4CB08E0F.8010801@gmail.com> Message-ID: <87wrpr5o7t.fsf@gmail.com> On Sat, Oct 09 2010, kunal ghosh wrote: > On 10/09/2010 10:15 AM, Noufal Ibrahim wrote: >> Hello everyone, >> I will be getting the videos of the talks at the recent PyCon we >> conducted here. There will be quite a few videos to upload so if a few >> people come forward, meet me somewhere in the city, take a DVD from me >> and upload the videos to blip.tv, it would be speed up the process >> considerably. >> >> If anyone can help out, please call me directly. My phone number >> is on the sponsors page on the website (http://in.pycon.org/2010/sponsors) >> >> Thanks. >> > If you do not mind, i can upload the videos to our college server it > would be much easier, > and save on some bandwidth costs as well. [...] If it's okay with the college, it's okay with me. I am ripping the DVDs right now and doing some transcoding. Please call me sometime tomorrow morning and we can fix a time for me to give you a batch for upload. -- ~noufal http://nibrahim.net.in From kunal.t2 at gmail.com Sun Oct 10 03:36:01 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Sun, 10 Oct 2010 07:06:01 +0530 Subject: [BangPypers] [OT] PyCon India video upload help needed In-Reply-To: <87wrpr5o7t.fsf@gmail.com> References: <87tykwt1nb.fsf@gmail.com> <4CB08E0F.8010801@gmail.com> <87wrpr5o7t.fsf@gmail.com> Message-ID: ok, will do. On Sat, Oct 9, 2010 at 9:54 PM, Noufal Ibrahim wrote: > On Sat, Oct 09 2010, kunal ghosh wrote: > > > On 10/09/2010 10:15 AM, Noufal Ibrahim wrote: > >> Hello everyone, > >> I will be getting the videos of the talks at the recent PyCon > we > >> conducted here. There will be quite a few videos to upload so if a few > >> people come forward, meet me somewhere in the city, take a DVD from me > >> and upload the videos to blip.tv, it would be speed up the process > >> considerably. > >> > >> If anyone can help out, please call me directly. My phone > number > >> is on the sponsors page on the website ( > http://in.pycon.org/2010/sponsors) > >> > >> Thanks. > >> > > If you do not mind, i can upload the videos to our college server it > > would be much easier, > > and save on some bandwidth costs as well. > > [...] > > If it's okay with the college, it's okay with me. I am ripping the DVDs > right now and doing some transcoding. Please call me sometime tomorrow > morning and we can fix a time for me to give you a batch for upload. > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards ------- Kunal Ghosh Dept of Computer Sc. & Engineering. Sir MVIT Bangalore,India Blog:kunalghosh.wordpress.com Website:www.kunalghosh.net46.net From thesujit at gmail.com Sun Oct 10 07:59:59 2010 From: thesujit at gmail.com (Sujit Ghosal) Date: Sun, 10 Oct 2010 11:29:59 +0530 Subject: [BangPypers] How to retrieve file from another server using Python In-Reply-To: References: Message-ID: Hi Nitin, Python has its own set of classes and methods to fetch,send HTTP/FTP and other protocol related data. First you make sure that on which port/protocol your communications (send/receive) will be done. Then choose the appropriate classes and so on. Let us know if you face any issues. Hope it helps. - Sujit From abpillai at gmail.com Mon Oct 11 15:51:59 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 11 Oct 2010 19:21:59 +0530 Subject: [BangPypers] How to retrieve file from another server using Python In-Reply-To: References: Message-ID: On Sat, Oct 9, 2010 at 12:07 PM, Nitin Kumar wrote: > Hi all, > > I want to fetch/copy one file from a server. > what all things i can do for the same? Plz help > Depends on what language the server talks. Python supports almost all of the common internet protocols such as HTTP, FTP, SMTP, XML-RPC ,SOAP etc. And there are third party libraries available for any unsupported protocols in the standard library. Mostly urllib/urllib2* functions should help you. > > -- > Nitin K > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From avinashtm at gmail.com Tue Oct 12 08:35:27 2010 From: avinashtm at gmail.com (Avinash TM) Date: Tue, 12 Oct 2010 12:05:27 +0530 Subject: [BangPypers] Python coaching classes Message-ID: Hi All, Myself Avinash, recently finished my BE , and joined a startup few weeks back. My job is entirely based on python platform. So i want to learn python in much extent , and get a good handle very quickly. Is there any coaching classes in Bangalore, which teaches python. Or any people ready to take classes in week end for 1 or 2 hours. Please let me know. It would be much helpful for me. Mean while I am going through the video tutorials as well but , didn't getting the full things. Waiting for reply Thanks & Regards Avinash 90 36 35 2341 From thesujit at gmail.com Tue Oct 12 08:44:25 2010 From: thesujit at gmail.com (Sujit Ghosal) Date: Tue, 12 Oct 2010 12:14:25 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: Message-ID: Hi Avinash, Well you can go through some Python VTC (if you are starting from scratch), and then refer Byte of Python PDF (Its very useful for beginners) and of-course *docs.python (http://docs.python.org/tutorial/index.html)* is cool. And AFAIK there are no such Python training classes in Bangalore. You have to learn it of your own. :) Hope it helps. Best Regards, Sujit On Tue, Oct 12, 2010 at 12:05 PM, Avinash TM wrote: > Hi All, > Myself Avinash, recently finished my BE , and joined a startup few weeks > back. > My job is entirely based on python platform. > So i want to learn python in much extent , and get a good handle very > quickly. > Is there any coaching classes in Bangalore, which teaches python. > Or any people ready to take classes in week end for 1 or 2 hours. Please > let > me know. It would be much helpful for me. > Mean while I am going through the video tutorials as well but , didn't > getting the full things. > > Waiting for reply > > > Thanks & Regards > Avinash > 90 36 35 2341 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Tue Oct 12 08:59:48 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 12 Oct 2010 12:29:48 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: Message-ID: <1286866788.2191.58.camel@localhost> On Tue, 2010-10-12 at 12:14 +0530, Sujit Ghosal wrote: > And AFAIK there are no such Python training classes in Bangalore. there will be soon -- regards Kenneth Gonsalves From noufal at gmail.com Tue Oct 12 10:36:42 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 12 Oct 2010 14:06:42 +0530 Subject: [BangPypers] Python training classes in Bangalore (was: Python coaching classes) In-Reply-To: (Sujit Ghosal's message of "Tue, 12 Oct 2010 12:14:25 +0530") References: Message-ID: <87pqvfzu1x.fsf_-_@gmail.com> On Tue, Oct 12 2010, Sujit Ghosal wrote: > Hi Avinash, > Well you can go through some Python VTC (if you are starting from > scratch), and then refer Byte of Python PDF (Its very useful for beginners) > and of-course *docs.python (http://docs.python.org/tutorial/index.html)* is > cool. And AFAIK there are no such Python training classes in Bangalore. You > have to learn it of your own. :) [...] Sorry to semi-hijack your thread. I have some nascent plans to set up some kind of semi-regular trainings on basic and advanced Python in Bangalore on a commercial basis (i.e. people attending will have to pay). I've had some request over the past few months asking for this kind of thing and want to know if it'll really work. If there are sufficient +1s, I'm hoping to do something like this in early November or so. -- ~noufal http://nibrahim.net.in From murugadoss2884 at gmail.com Tue Oct 12 12:44:40 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Tue, 12 Oct 2010 19:44:40 +0900 Subject: [BangPypers] Accessing file using httpsconnection Message-ID: Hello All, Hope everyone is doing good !! I am writing a test program using https module, Aim of the program is to connect to internet, download few files from the server. Give below is the sample code Sample Code: >>> import httplib >>> conn = httplib.HTTPSConnection("internet server") >>> conn.request("GET","/'*.zip") On sending request for getting files, python throws "segmentation fault". I feel, http connection is successful, but the Error is due to some invalid access of "conn" information. I would like to know, the debugging procedure to trace the reason for fault. ("Python is compiled is SSL to support httpsconnection) Any suggestions will be helpful. -- Thanks & Regards Murugadoss From orsenthil at gmail.com Tue Oct 12 12:56:55 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 12 Oct 2010 16:26:55 +0530 Subject: [BangPypers] Accessing file using httpsconnection In-Reply-To: References: Message-ID: <20101012105655.GA24102@remy> On Tue, Oct 12, 2010 at 07:44:40PM +0900, murugadoss wrote: > Sample Code: > >>> import httplib > >>> conn = httplib.HTTPSConnection("internet server") > >>> conn.request("GET","/'*.zip") > I guessing you are using a correct "internet server" correctly. >>> conn = httplib.HTTPSConnection('myhostname.domain',port) >>> conn.request("GET","/") # Lets first do a simple GET If you have to get *.zip files, you might have to pass the proper headers in the first stmt. > On sending request for getting files, python throws "segmentation fault". I Segmentation fault is funny!, It would help if you paste the full error message or traceback -- Senthil From lawgon at au-kbc.org Tue Oct 12 13:08:27 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 12 Oct 2010 16:38:27 +0530 Subject: [BangPypers] Accessing file using httpsconnection In-Reply-To: <20101012105655.GA24102@remy> References: <20101012105655.GA24102@remy> Message-ID: <1286881707.2191.73.camel@localhost> On Tue, 2010-10-12 at 16:26 +0530, Senthil Kumaran wrote: > > On sending request for getting files, python throws "segmentation > fault". I > > Segmentation fault is funny!, It would help if you paste the full > error > message or traceback will you get a traceback on segfault? -- regards Kenneth Gonsalves From yarish at gmail.com Tue Oct 12 14:01:26 2010 From: yarish at gmail.com (yarish kumar) Date: Tue, 12 Oct 2010 17:31:26 +0530 Subject: [BangPypers] Python training classes in Bangalore (was: Python coaching classes) In-Reply-To: <87pqvfzu1x.fsf_-_@gmail.com> References: <87pqvfzu1x.fsf_-_@gmail.com> Message-ID: +1 i'm interested in python advanced level emacs/linux env. and LAMP stack. thanks, yarish kumar Bangalore | +91 99800 44534 | *skype :* yarishkumar linkedin | twitter | orkut | facebook On Tue, Oct 12, 2010 at 2:06 PM, Noufal Ibrahim wrote: > On Tue, Oct 12 2010, Sujit Ghosal wrote: > > > Hi Avinash, > > Well you can go through some Python VTC (if you are starting from > > scratch), and then refer Byte of Python PDF (Its very useful for > beginners) > > and of-course *docs.python (http://docs.python.org/tutorial/index.html)*is > > cool. And AFAIK there are no such Python training classes in Bangalore. > You > > have to learn it of your own. :) > > [...] > > Sorry to semi-hijack your thread. > > I have some nascent plans to set up some kind of semi-regular trainings > on basic and advanced Python in Bangalore on a commercial basis > (i.e. people attending will have to pay). > > I've had some request over the past few months asking for this kind of > thing and want to know if it'll really work. If there are sufficient > +1s, I'm hoping to do something like this in early November or so. > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Tue Oct 12 14:16:52 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 12 Oct 2010 17:46:52 +0530 Subject: [BangPypers] Accessing file using httpsconnection In-Reply-To: <1286881707.2191.73.camel@localhost> References: <20101012105655.GA24102@remy> <1286881707.2191.73.camel@localhost> Message-ID: On Tue, Oct 12, 2010 at 4:38 PM, Kenneth Gonsalves wrote: > > > Segmentation fault is funny!, It would help if you paste the full > > error > > message or traceback > > will you get a traceback on segfault? You wont. Sorry. Segfault while using httplib/sockets is *extremely* rare, I am not sure if I have come across it before. So, I was more interested in the actually snippet which caused the error (which I believe should be a traceback). -- Senthil From kunal.t2 at gmail.com Tue Oct 12 16:00:19 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Tue, 12 Oct 2010 19:30:19 +0530 Subject: [BangPypers] Extending an existing KDE app using python (PyKDE ?) Message-ID: <4CB469F3.3090705@gmail.com> Hi all, I develop for digikam (www.digikam.org). Being a Pure C++ application most of my novice-ish C++ experience coding for the same takes up a lot of time debugging trivial errors. My Question is that, can i extend an existing C++ Qt/KDE application using python ? (pyQt and pyKDE AFAIK is for standalone application). I am open to any suggestion. As long as it reduces the amount of C++ i have to write. regards, Kunal From venkat83 at gmail.com Tue Oct 12 16:44:15 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 12 Oct 2010 20:14:15 +0530 Subject: [BangPypers] [x-post] Fwd: Django Linky In-Reply-To: References: Message-ID: Why django sucks....err...rules http://djangocon.blip.tv/file/4112452/ http://www.eflorenzano.com/blog/post/object-lesson-how-respond-criticism/ -V- From renukaprasadb at gmail.com Tue Oct 12 17:52:51 2010 From: renukaprasadb at gmail.com (renuka prasad) Date: Tue, 12 Oct 2010 21:22:51 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: Message-ID: On Tue, Oct 12, 2010 at 12:05 PM, Avinash TM wrote: > Hi All, > Myself Avinash, recently finished my BE , and joined a startup few weeks > back. > My job is entirely based on python platform. > So i want to learn python in much extent , and get a good handle very > quickly. > Is there any coaching classes in Bangalore, which teaches python. > Or any people ready to take classes in week end for 1 or 2 hours. Please > let > me know. It would be much helpful for me. > Mean while I am going through the video tutorials as well but , didn't > getting the full things. > > where are you put up, i have lfew videos to share with me, which you could download from FOSSEE website http://fossee.in/videos which has their workshop videos, which are quite useful, then you can take on by yourself > Waiting for reply > > > Thanks & Regards > Avinash > 90 36 35 2341 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Renuka Prasad 9901945674 From lawgon at au-kbc.org Wed Oct 13 02:04:17 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 13 Oct 2010 05:34:17 +0530 Subject: [BangPypers] Accessing file using httpsconnection In-Reply-To: References: <20101012105655.GA24102@remy> <1286881707.2191.73.camel@localhost> Message-ID: <1286928257.2191.77.camel@localhost> On Tue, 2010-10-12 at 17:46 +0530, Senthil Kumaran wrote: > On Tue, Oct 12, 2010 at 4:38 PM, Kenneth Gonsalves > wrote: > > > > > Segmentation fault is funny!, It would help if you paste the full > > > error > > > message or traceback > > > > will you get a traceback on segfault? > > You wont. Sorry. > Segfault while using httplib/sockets is *extremely* rare, segfault using python has only occurred for me when some part of the installation or the OS is b0rked (and of course, when using mod_python). -- regards Kenneth Gonsalves From jayasimha.makineni at gmail.com Wed Oct 13 07:16:54 2010 From: jayasimha.makineni at gmail.com (jayasimha makineni) Date: Wed, 13 Oct 2010 10:46:54 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: <1286866788.2191.58.camel@localhost> References: <1286866788.2191.58.camel@localhost> Message-ID: Kenneth, Please elaborate. I want to be a Python Instructor. cheers, jay From lawgon at au-kbc.org Wed Oct 13 07:58:48 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 13 Oct 2010 11:28:48 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: <1286866788.2191.58.camel@localhost> Message-ID: <1286949528.2238.2.camel@localhost> On Wed, 2010-10-13 at 10:46 +0530, jayasimha makineni wrote: > Please elaborate. I want to be a Python Instructor. elaborate on what? -- regards Kenneth Gonsalves From jayasimha.makineni at gmail.com Wed Oct 13 08:02:45 2010 From: jayasimha.makineni at gmail.com (jayasimha makineni) Date: Wed, 13 Oct 2010 11:32:45 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: <1286949528.2238.2.camel@localhost> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> Message-ID: Kenneth, on "there will be soon" On Wed, Oct 13, 2010 at 11:28 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-13 at 10:46 +0530, jayasimha makineni wrote: > > Please elaborate. I want to be a Python Instructor. > > elaborate on what? > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Wed Oct 13 08:05:05 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 13 Oct 2010 11:35:05 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> Message-ID: <1286949905.2238.5.camel@localhost> On Wed, 2010-10-13 at 11:32 +0530, jayasimha makineni wrote: > on "there will be soon" it is a secret - all will be revealed at an appropriate time. -- regards Kenneth Gonsalves From harsha.mukkera at gmail.com Wed Oct 13 14:43:54 2010 From: harsha.mukkera at gmail.com (mukkera harsha) Date: Wed, 13 Oct 2010 08:43:54 -0400 Subject: [BangPypers] Python coaching classes In-Reply-To: <1286949905.2238.5.camel@localhost> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> Message-ID: Traceback (most recent call last): File "workflowexecutionservice.py", line 24, in class Subworkflow(ClassSerializer): File "workflowexecutionservice.py", line 26, in Subworkflow files = AnyAsDict(String) TypeError: *new*() takes exactly 1 argument (2 given) I am getting the following error. Please help me. On Wed, Oct 13, 2010 at 2:05 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-13 at 11:32 +0530, jayasimha makineni wrote: > > on "there will be soon" > > it is a secret - all will be revealed at an appropriate time. > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Harshavardhan Reddy Mukkera. From gopalakrishnan.subramani at gmail.com Wed Oct 13 15:32:34 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Wed, 13 Oct 2010 19:02:34 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: <1286949905.2238.5.camel@localhost> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> Message-ID: I will be interested in advanced python session anywhere in Bangalore. On Wed, Oct 13, 2010 at 11:35 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-13 at 11:32 +0530, jayasimha makineni wrote: > > on "there will be soon" > > it is a secret - all will be revealed at an appropriate time. > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Wed Oct 13 15:47:35 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 13 Oct 2010 19:17:35 +0530 Subject: [BangPypers] TypeError: problem (was: Python coaching classes) In-Reply-To: (mukkera harsha's message of "Wed, 13 Oct 2010 08:43:54 -0400") References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> Message-ID: <87mxqidx1k.fsf_-_@gmail.com> On Wed, Oct 13 2010, mukkera harsha wrote: > Traceback (most recent call last): > File "workflowexecutionservice.py", line 24, in > > class Subworkflow(ClassSerializer): > > File "workflowexecutionservice.py", line 26, in Subworkflow > > files = AnyAsDict(String) > > TypeError: *new*() takes exactly 1 argument (2 given) > > > I am getting the following error. Please help me. [...] We'd need more context and information to help you. Can you provide the code you're having trouble with? The obvious problem is that you're passing too many arguments to the AnyAsDict constructor but without information on what that is, we can't help. Also, please start a new thread for a new question. Replying to an older thread messes threading in most mail clients. Please read through http://www.catb.org/esr/faqs/smart-questions.html and reask your question if you want a more detailed answer. Also, as a minor point, you've pasted your traceback before your request for help so you're getting the "preceeding error" and not the "following error". :) -- ~noufal http://nibrahim.net.in From harsha.mukkera at gmail.com Wed Oct 13 16:18:59 2010 From: harsha.mukkera at gmail.com (mukkera harsha) Date: Wed, 13 Oct 2010 10:18:59 -0400 Subject: [BangPypers] TypeError: problem (was: Python coaching classes) In-Reply-To: <87mxqidx1k.fsf_-_@gmail.com> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <87mxqidx1k.fsf_-_@gmail.com> Message-ID: Hi, The attached is my code. On Wed, Oct 13, 2010 at 9:47 AM, Noufal Ibrahim wrote: > On Wed, Oct 13 2010, mukkera harsha wrote: > > > Traceback (most recent call last): > > File "workflowexecutionservice.py", line 24, in > > > > class Subworkflow(ClassSerializer): > > > > File "workflowexecutionservice.py", line 26, in Subworkflow > > > > files = AnyAsDict(String) > > > > TypeError: *new*() takes exactly 1 argument (2 given) > > > > > > I am getting the following error. Please help me. > > [...] > > We'd need more context and information to help you. Can you provide the > code you're having trouble with? The obvious problem is that you're > passing too many arguments to the AnyAsDict constructor but without > information on what that is, we can't help. > > Also, please start a new thread for a new question. Replying to an older > thread messes threading in most mail clients. > > Please read through > http://www.catb.org/esr/faqs/smart-questions.html and reask your > question if you want a more detailed answer. > > Also, as a minor point, you've pasted your traceback before your request > for help so you're getting the "preceeding error" and not the "following > error". :) > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Harshavardhan Reddy Mukkera. From jaganadhg at gmail.com Wed Oct 13 17:23:47 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Wed, 13 Oct 2010 20:53:47 +0530 Subject: [BangPypers] Python-yql error Message-ID: Dear All I was trying to run the following code >>> import yql >>> y = yql.Public() >>> query = 'select * from flickr.photos.search where text="panda" limit 3'; >>> result = y.execute(query) When i execute the fourth line I am getting the error http://pastebin.com/HryAZVEA . Any clue how to resolve this. -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From vnbang2003 at yahoo.com Wed Oct 13 17:23:53 2010 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 13 Oct 2010 20:53:53 +0530 (IST) Subject: [BangPypers] Python coaching classes In-Reply-To: Message-ID: <524179.28410.qm@web95313.mail.in2.yahoo.com> What i can guess is AnyAsDict() constructor does not need any argument but you are passing one. self will be default? argument it will have. You context code can help to get exact answer. With Regards Vijay --- On Wed, 13/10/10, mukkera harsha wrote: From: mukkera harsha Subject: Re: [BangPypers] Python coaching classes To: "Bangalore Python Users Group - India" Date: Wednesday, 13 October, 2010, 6:13 PM Traceback (most recent call last): File "workflowexecutionservice.py", line 24, in class Subworkflow(ClassSerializer): File "workflowexecutionservice.py", line 26, in Subworkflow files = AnyAsDict(String) TypeError: *new*() takes exactly 1 argument (2 given) I am getting the following error. Please help me. On Wed, Oct 13, 2010 at 2:05 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-13 at 11:32 +0530, jayasimha makineni wrote: > > on "there will be soon" > > it is a secret - all will be revealed at an appropriate time. > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Harshavardhan Reddy Mukkera. _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From harsha.mukkera at gmail.com Wed Oct 13 17:32:36 2010 From: harsha.mukkera at gmail.com (mukkera harsha) Date: Wed, 13 Oct 2010 11:32:36 -0400 Subject: [BangPypers] Python coaching classes In-Reply-To: <524179.28410.qm@web95313.mail.in2.yahoo.com> References: <524179.28410.qm@web95313.mail.in2.yahoo.com> Message-ID: Hi, I need to get the xml file and convert the data into dictionary. So, In order to specify the xml file , I need to pass the paramater. The attached is the code I am working on, Can you please let me know if I need to make any other changes in the code. On Wed, Oct 13, 2010 at 11:23 AM, vijay wrote: > What i can guess is AnyAsDict() constructor does not need any argument but > you are passing one. self will be default argument it will have. > You context code can help to get exact answer. > > With Regards > Vijay > > > --- On Wed, 13/10/10, mukkera harsha wrote: > > From: mukkera harsha > Subject: Re: [BangPypers] Python coaching classes > To: "Bangalore Python Users Group - India" > Date: Wednesday, 13 October, 2010, 6:13 PM > > Traceback (most recent call last): > File "workflowexecutionservice.py", line 24, in > > class Subworkflow(ClassSerializer): > > File "workflowexecutionservice.py", line 26, in Subworkflow > > files = AnyAsDict(String) > > TypeError: *new*() takes exactly 1 argument (2 given) > > > I am getting the following error. Please help me. > > On Wed, Oct 13, 2010 at 2:05 AM, Kenneth Gonsalves >wrote: > > > On Wed, 2010-10-13 at 11:32 +0530, jayasimha makineni wrote: > > > on "there will be soon" > > > > it is a secret - all will be revealed at an appropriate time. > > -- > > regards > > Kenneth Gonsalves > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Harshavardhan Reddy Mukkera. > _______________________________________________ > 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 > -- Harshavardhan Reddy Mukkera. From lawgon at au-kbc.org Thu Oct 14 06:55:24 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 14 Oct 2010 10:25:24 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> Message-ID: <1287032124.2238.17.camel@localhost> On Wed, 2010-10-13 at 19:02 +0530, Gopalakrishnan Subramani wrote: > I will be interested in advanced python session anywhere in Bangalore. as a trainer or as a trainee? -- regards Kenneth Gonsalves From lawgon at au-kbc.org Thu Oct 14 06:56:26 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 14 Oct 2010 10:26:26 +0530 Subject: [BangPypers] TypeError: problem (was: Python coaching classes) In-Reply-To: References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <87mxqidx1k.fsf_-_@gmail.com> Message-ID: <1287032186.2238.22.camel@localhost> On Wed, 2010-10-13 at 10:18 -0400, mukkera harsha wrote: > The attached is my code. looks like the attachment was stripped - use http://dpaste.com -- regards Kenneth Gonsalves From harsha.mukkera at gmail.com Thu Oct 14 07:04:49 2010 From: harsha.mukkera at gmail.com (mukkera harsha) Date: Thu, 14 Oct 2010 01:04:49 -0400 Subject: [BangPypers] TypeError: problem (was: Python coaching classes) In-Reply-To: <1287032186.2238.22.camel@localhost> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <87mxqidx1k.fsf_-_@gmail.com> <1287032186.2238.22.camel@localhost> Message-ID: Hi, Thanks for your reply. http://dpaste.com/257629/ I pasted the code as you said. Please follow the link. On Thu, Oct 14, 2010 at 12:56 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-13 at 10:18 -0400, mukkera harsha wrote: > > The attached is my code. > > looks like the attachment was stripped - use http://dpaste.com > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Harshavardhan Reddy Mukkera. From orsenthil at gmail.com Thu Oct 14 07:32:17 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 14 Oct 2010 11:02:17 +0530 Subject: [BangPypers] TypeError: problem (was: Python coaching classes) In-Reply-To: References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <87mxqidx1k.fsf_-_@gmail.com> <1287032186.2238.22.camel@localhost> Message-ID: <20101014053216.GC2064@remy> On Thu, Oct 14, 2010 at 01:04:49AM -0400, mukkera harsha wrote: > > http://dpaste.com/257629/ > > I pasted the code as you said. Please follow the link. This may hardly help. Here are the suggestions for you to debug your code. TypeError is rather the easiest of Exceptions to debug. - From the traceback, find out where exactly does the TypeError occurs. The traceback would give the exact line and the variable name. - Go there and do a print(type(variable)) and see if the code was expecting the same And then you should be able to correct the problem. -- Senthil I hate dying. -- Dave Johnson From gopalakrishnan.subramani at gmail.com Thu Oct 14 11:13:47 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Thu, 14 Oct 2010 14:43:47 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: <1287032124.2238.17.camel@localhost> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <1287032124.2238.17.camel@localhost> Message-ID: I would be interested as trainee for advanced python courses. On Thu, Oct 14, 2010 at 10:25 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-13 at 19:02 +0530, Gopalakrishnan Subramani wrote: > > I will be interested in advanced python session anywhere in Bangalore. > > as a trainer or as a trainee? > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Thu Oct 14 11:16:32 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 14 Oct 2010 14:46:32 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <1287032124.2238.17.camel@localhost> Message-ID: <1287047792.2238.77.camel@localhost> On Thu, 2010-10-14 at 14:43 +0530, Gopalakrishnan Subramani wrote: > I would be interested as trainee for advanced python courses. and if you do not mind - could you specify what you expect from an 'advanced python course'? -- regards Kenneth Gonsalves From vid at svaksha.com Thu Oct 14 12:53:54 2010 From: vid at svaksha.com (=?UTF-8?B?4KWlIOCkuOCljeCkteCkleCljeCktyDgpaUg?=) Date: Thu, 14 Oct 2010 16:38:54 +0545 Subject: [BangPypers] [x-post] weekly python dojo meetups @bangalore. In-Reply-To: References: Message-ID: Hello, On Thu, Sep 30, 2010 at 10:46, ? ?????? ? wrote: > WHERE: The Centre for Internet and Society[3][4] (<--google map link) > No. 194, 2nd 'C' Cross, Domlur 2nd Stage, Bangalore 560 071 The full address is No. 194, 2nd 'C' Cross, 4th Main Domlur 2nd Stage Opposite to Domlur Club [<== a well-known landmark if you cant find the office[0]] Bangalore 560 071 Karnataka [0] http://en.wikipedia.org/wiki/Wikipedia:Meetup/Bangalore/Bangalore21#Getting_there > WHEN: 7pm-8pm every Friday. We start from next week, 08Oct2010. Just a heads up to say I wont be able to make it this week (but plan to attend on Oct22). Folks planning to attend on Oct15, are requested to inform the CIS staff - Royson or Ajoy (both are CC'd) as a courtesy -- Last week Royson went out of his way to keep the office open (office hours are 9-5 and we meet at 7pm) and provide us with refreshments. Thanks, -- Regards, vid ? http://svaksha.com From gopalakrishnan.subramani at gmail.com Thu Oct 14 15:31:41 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Thu, 14 Oct 2010 19:01:41 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: <1287047792.2238.77.camel@localhost> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <1287032124.2238.17.camel@localhost> <1287047792.2238.77.camel@localhost> Message-ID: This list may not be advanced python list for many people. Highly subjective..No arguments!! I am occasional python programmer learning and exploring Pylons and other python stuffs for web development. 1. What is really Pythonista + how to become one 2. Generator + iterator 3. Decorators 4. using iPython shell 5. Debugging python applications 6. Python meta class features 7. Boost.Python (Boost Python C++ interface) Regards, Krish 4. On Thu, Oct 14, 2010 at 2:46 PM, Kenneth Gonsalves wrote: > On Thu, 2010-10-14 at 14:43 +0530, Gopalakrishnan Subramani wrote: > > I would be interested as trainee for advanced python courses. > > and if you do not mind - could you specify what you expect from an > 'advanced python course'? > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Thu Oct 14 15:33:16 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 14 Oct 2010 19:03:16 +0530 Subject: [BangPypers] Python-yql error In-Reply-To: References: Message-ID: Runs fine for me. Python 2.7 (r27:82500, Oct 8 2010, 14:07:56) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import yql >>> y = yql.Public() >>> y.execute('select * from flickr.photos.search where text="panda" limit 3') >>> Btw, the traceback seems to indicate you have installed httplib2 on top of the standard httplib which comes with Python. 1. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in connect(self ) 2. 734 sock = socket.socket(socket.AF_INET, socket. SOCK_STREAM) 3. 735 if self.timeout is not None: 4. --> 736 sock.settimeout(self.timeout) 5. 737 sock.connect((self.host, self.port)) 6. 738 ssl = socket.ssl(sock, self.key_file, self.cert_file) Try removing httplib2 and see if it works. --Anand On Wed, Oct 13, 2010 at 8:53 PM, JAGANADH G wrote: > Dear All > I was trying to run the following code > > >>> import yql > >>> y = yql.Public() > >>> query = 'select * from flickr.photos.search where text="panda" limit > 3'; > >>> result = y.execute(query) > > When i execute the fourth line I am getting the error > http://pastebin.com/HryAZVEA . > Any clue how to resolve this. > > -- > ********************************** > JAGANADH G > http://jaganadhg.freeflux.net/blog > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Thu Oct 14 16:00:57 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 14 Oct 2010 19:30:57 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: (Gopalakrishnan Subramani's message of "Thu, 14 Oct 2010 19:01:41 +0530") References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <1287032124.2238.17.camel@localhost> <1287047792.2238.77.camel@localhost> Message-ID: <87pqvcdgbq.fsf@gmail.com> I am preparing a tutorial on extending Python. I'm planning to cover vanilla C extensions (which is CPython specific) and ctypes (which should atleast in theory work for other implementations as well). Mostly a hands on thing to help people wrap C libraries. There are holes in my plan so I'm not talking any more about it but I do plan to hold a tutorial on this in late November or so. It'll probably be two days long. I'll mention it over here on this list and the usual places. -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Fri Oct 15 10:55:17 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 15 Oct 2010 14:25:17 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <1287032124.2238.17.camel@localhost> <1287047792.2238.77.camel@localhost> Message-ID: On Thu, Oct 14, 2010 at 7:01 PM, Gopalakrishnan Subramani < gopalakrishnan.subramani at gmail.com> wrote: > This list may not be advanced python list for many people. Highly > subjective..No arguments!! > I am occasional python programmer learning and exploring Pylons and other > python stuffs for web development. > > 1. What is really Pythonista + how to become one > 2. Generator + iterator > 3. Decorators > 4. using iPython shell > 5. Debugging python applications > 6. Python meta class features > 7. Boost.Python (Boost Python C++ interface) > > Regards, > > Krish > > I am thinking of organizing discussion "classes" on some of these topics on week-ends in BangPyper meetings. My topic of interests are in meta-programming, generators and extending Python. Of course these won't be formal "tutorials" or anything but more like a general "talkfest" kind of thing where 1 or 2 people with the gyan takes lead in taking a topic and dissecting it in front of the audience. But the audience I have in mind are not newbies to these topics but have at least an idea of what is being discussed. I will keep the list posted on my plans. --Anand From rmathews at gmail.com Fri Oct 15 11:18:26 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Fri, 15 Oct 2010 14:48:26 +0530 Subject: [BangPypers] Python coaching classes In-Reply-To: References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <1287032124.2238.17.camel@localhost> <1287047792.2238.77.camel@localhost> Message-ID: On Fri, Oct 15, 2010 at 14:25, Anand Balachandran Pillai wrote: > I am thinking of organizing discussion "classes" on some of these topics > on week-ends in BangPyper meetings. My topic of interests are in > meta-programming, generators and extending Python. > Sure, this is BangPypers, but does anybody have similar plans in Chennai? -- http://roshan.mathews.in/ From harsha.mukkera at gmail.com Fri Oct 15 17:35:21 2010 From: harsha.mukkera at gmail.com (mukkera harsha) Date: Fri, 15 Oct 2010 11:35:21 -0400 Subject: [BangPypers] TypeError: problem (was: Python coaching classes) In-Reply-To: <20101014053216.GC2064@remy> References: <1286866788.2191.58.camel@localhost> <1286949528.2238.2.camel@localhost> <1286949905.2238.5.camel@localhost> <87mxqidx1k.fsf_-_@gmail.com> <1287032186.2238.22.camel@localhost> <20101014053216.GC2064@remy> Message-ID: Hi, I want to know , how Soaplib automatically handle the soap xml envelope for you and automatically turn the argument into an object of type Subworkflow. -------------------------------------------- class Subworkflow(ClassSerializer): class types: subworkflowid = String filenames = Array(String) filedata = Array(String) for i in filedata: base64.decode(i, open(filenames[i],"w")) --------------------------------------------------- I know that I dint code it properly, But I am not getting any idea of how to do that. I am a newbie. Here Subworkflow is the class I defined. It is a tiny class that has 3 identifiers. Subworkflowid, filenames, filedata. I am NOT passing in raw arguments to your function, I am passing in an actual Subworkflow object... that soaplib will have already automatically constructed for me. And for each element in the filedata, I have to base64_decode it. I am using soaplib as SOAP server and SUDS as soap client. Your help be greatly appreciated. From harsha.mukkera at gmail.com Fri Oct 15 17:34:31 2010 From: harsha.mukkera at gmail.com (mukkera harsha) Date: Fri, 15 Oct 2010 11:34:31 -0400 Subject: [BangPypers] [x-post] weekly python dojo meetups @bangalore. In-Reply-To: References: Message-ID: Hi, I want to know , how Soaplib automatically handle the soap xml envelope for us and automatically turn the argument into an object of type Subworkflow. -------------------------------------------- class Subworkflow(ClassSerializer): class types: subworkflowid = String filenames = Array(String) filedata = Array(String) for i in filedata: base64.decode(i, open(filenames[i],"w")) --------------------------------------------------- I know that I dint code it properly, But I am not getting any idea of how to do that. I am a newbie. Here Subworkflow is the class I defined. It is a tiny class that has 3 identifiers. Subworkflowid, filenames, filedata. I am NOT passing in raw arguments to your function, I am passing in an actual Subworkflow object... that soaplib will have already automatically constructed for me. And for each element in the filedata, I have to base64_decode it. I am using soaplib as SOAP server and SUDS as soap client. Your help will be greatly appreciated. > > -- Harshavardhan Reddy Mukkera. From harsha.mukkera at gmail.com Fri Oct 15 17:34:31 2010 From: harsha.mukkera at gmail.com (mukkera harsha) Date: Fri, 15 Oct 2010 11:34:31 -0400 Subject: [BangPypers] [x-post] weekly python dojo meetups @bangalore. In-Reply-To: References: Message-ID: Hi, I want to know , how Soaplib automatically handle the soap xml envelope for us and automatically turn the argument into an object of type Subworkflow. -------------------------------------------- class Subworkflow(ClassSerializer): class types: subworkflowid = String filenames = Array(String) filedata = Array(String) for i in filedata: base64.decode(i, open(filenames[i],"w")) --------------------------------------------------- I know that I dint code it properly, But I am not getting any idea of how to do that. I am a newbie. Here Subworkflow is the class I defined. It is a tiny class that has 3 identifiers. Subworkflowid, filenames, filedata. I am NOT passing in raw arguments to your function, I am passing in an actual Subworkflow object... that soaplib will have already automatically constructed for me. And for each element in the filedata, I have to base64_decode it. I am using soaplib as SOAP server and SUDS as soap client. Your help will be greatly appreciated. > > -- Harshavardhan Reddy Mukkera. From jaganadhg at gmail.com Sat Oct 16 10:59:37 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Sat, 16 Oct 2010 14:29:37 +0530 Subject: [BangPypers] Python-yql error In-Reply-To: References: Message-ID: On Thu, Oct 14, 2010 at 7:03 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Runs fine for me. > > Python 2.7 (r27:82500, Oct 8 2010, 14:07:56) > [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import yql > >>> y = yql.Public() > >>> y.execute('select * from flickr.photos.search where text="panda" limit > 3') > > >>> > > Btw, the traceback seems to indicate you have installed httplib2 > on top of the standard httplib which comes with Python. > > > 1. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in connect(self > ) > 2. 734 sock = socket.socket(socket.AF_INET, socket. > SOCK_STREAM) > 3. 735 if self.timeout is not None: > 4. --> 736 sock.settimeout(self.timeout) > 5. 737 sock.connect((self.host, self.port)) > 6. 738 ssl = socket.ssl(sock, self.key_file, self.cert_file) > > Try removing httplib2 and see if it works. > > I removed the httplib2. Now I am getting this error In [1]: import yql --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /home/jaganadhg/Desktop/music/ in () /usr/lib/python2.6/site-packages/yql-0.4-py2.6.egg/yql/__init__.py in () 25 from urlparse import urlparse 26 from urllib import urlencode ---> 27 from httplib2 import Http 28 29 from yql.utils import get_http_method ImportError: No module named httplib2 In [2]: -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From jaganadhg at gmail.com Sat Oct 16 11:03:05 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Sat, 16 Oct 2010 14:33:05 +0530 Subject: [BangPypers] Python-yql error In-Reply-To: References: Message-ID: On Sat, Oct 16, 2010 at 2:29 PM, JAGANADH G wrote: > > > On Thu, Oct 14, 2010 at 7:03 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > >> Runs fine for me. >> >> Python 2.7 (r27:82500, Oct 8 2010, 14:07:56) >> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import yql >> >>> y = yql.Public() >> >>> y.execute('select * from flickr.photos.search where text="panda" limit >> 3') >> >> >>> >> >> Btw, the traceback seems to indicate you have installed httplib2 >> on top of the standard httplib which comes with Python. >> >> >> 1. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in >> connect(self >> ) >> 2. 734 sock = socket.socket(socket.AF_INET, socket. >> SOCK_STREAM) >> 3. 735 if self.timeout is not None: >> 4. --> 736 sock.settimeout(self.timeout) >> 5. 737 sock.connect((self.host, self.port)) >> 6. 738 ssl = socket.ssl(sock, self.key_file, self.cert_file) >> >> Try removing httplib2 and see if it works. >> >> > I removed the httplib2. Now I am getting this error > In [1]: import yql > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > > /home/jaganadhg/Desktop/music/ in () > > /usr/lib/python2.6/site-packages/yql-0.4-py2.6.egg/yql/__init__.py in > () > 25 from urlparse import urlparse > 26 from urllib import urlencode > ---> 27 from httplib2 import Http > 28 > 29 from yql.utils import get_http_method > > ImportError: No module named httplib2 > > In [2]: > > After removing http lib once again I installed python-yql . Then I tried the same example. Any how the error changed to In [4]: y.execute('select * from flickr.photos.search where text="panda" limit=3') --------------------------------------------------------------------------- YQLError Traceback (most recent call last) /home/jaganadhg/Desktop/music/ in () /usr/lib/python2.6/site-packages/yql-0.4-py2.6.egg/yql/__init__.pyc in execute(self, query, params, **kwargs) 223 return YQLObj(json.loads(content)) 224 else: --> 225 raise YQLError, (resp, content) 226 227 YQLError: ({'status': '400', 'transfer-encoding': 'chunked', 'age': '0', 'vary': 'Accept-Encoding', 'server': 'YTS/1.17.21', 'connection': 'keep-alive', 'cache-control': 'private', 'date': 'Sat, 16 Oct 2010 09:01:12 GMT', 'p3p': 'policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"', 'content-type': 'application/json;charset=utf-8', 'access-control-allow-origin': '*'}, '{"error":{"lang":"en-US","description":"Syntax error(s) [line 1:59 expecting limit got \'=\']"}}') -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From jaganadhg at gmail.com Sat Oct 16 11:10:45 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Sat, 16 Oct 2010 14:40:45 +0530 Subject: [BangPypers] Python-yql error #solved Message-ID: Finally the issue solved. Removed the old httplib2. The once again I did python setup.py install for python-yql. It downloaded the lated httplib2. And finally python-yql got working . Thanks Anand for the help -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From orsenthil at gmail.com Sun Oct 17 18:51:27 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sun, 17 Oct 2010 22:21:27 +0530 Subject: [BangPypers] Python-yql error In-Reply-To: References: Message-ID: <20101017165127.GA6202@remy> On Sat, Oct 16, 2010 at 02:33:05PM +0530, JAGANADH G wrote: > >> >>> y.execute('select * from flickr.photos.search where text="panda" limit > >> 3') > '{"error":{"lang":"en-US","description":"Syntax error(s) [line 1:59 > expecting limit got \'=\']"}}') Just listen to this error message. It says it was expecting limit but it got something else. -- Senthil From jaganadhg at gmail.com Sun Oct 17 18:58:29 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Sun, 17 Oct 2010 22:28:29 +0530 Subject: [BangPypers] Python-yql error In-Reply-To: <20101017165127.GA6202@remy> References: <20101017165127.GA6202@remy> Message-ID: On Sun, Oct 17, 2010 at 10:21 PM, Senthil Kumaran wrote: > On Sat, Oct 16, 2010 at 02:33:05PM +0530, JAGANADH G wrote: > > >> >>> y.execute('select * from flickr.photos.search where text="panda" > limit > > >> 3') > > '{"error":{"lang":"en-US","description":"Syntax error(s) [line 1:59 > > expecting limit got \'=\']"}}') > > Just listen to this error message. It says it was expecting limit but > it got something else. > ya . I got it . Now working fine -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From lawgon at au-kbc.org Mon Oct 18 13:30:32 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 18 Oct 2010 17:00:32 +0530 Subject: [BangPypers] how to read remote uploads Message-ID: <1287401432.2030.186.camel@localhost> hi, I have a gps device which sends it's position to a any web url. I want to catch this info which I will send to a port (say 9000). How do I do this in python - something totally new for me, so please give some clues on where to begin. -- regards Kenneth Gonsalves From santrajan at gmail.com Mon Oct 18 13:40:02 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Mon, 18 Oct 2010 17:10:02 +0530 Subject: [BangPypers] how to read remote uploads In-Reply-To: <1287401432.2030.186.camel@localhost> References: <1287401432.2030.186.camel@localhost> Message-ID: If i understood this correctly you specify the web url for the gps device right? Why not set the port in the url itself like http://example.com:9000/..... So the gps sends directly to port 9000 and you have a web server listening on that port. Or have i missed something? On Mon, Oct 18, 2010 at 5:00 PM, Kenneth Gonsalves wrote: > hi, > I have a gps device which sends it's position to a any web url. I want > to catch this info which I will send to a port (say 9000). How do I do > this in python - something totally new for me, so please give some clues > on where to begin. > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From lawgon at au-kbc.org Mon Oct 18 13:54:05 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 18 Oct 2010 17:24:05 +0530 Subject: [BangPypers] how to read remote uploads In-Reply-To: References: <1287401432.2030.186.camel@localhost> Message-ID: <1287402845.2030.191.camel@localhost> On Mon, 2010-10-18 at 17:10 +0530, Santosh Rajan wrote: > If i understood this correctly you specify the web url for the gps > device > right? Why not set the port in the url itself like > http://example.com:9000/..... I have done that > So the gps sends directly to port 9000 and you have a web server > listening > on that port. > Or have i missed something? the gps program sends the info with a php url - I need to collect the info and massage it before sending it to the webserver for display. So I need a small python program to listen on that port and collect whatever comes (is it socket programming or something like that?) -- regards Kenneth Gonsalves From noufal at gmail.com Mon Oct 18 14:11:27 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 18 Oct 2010 17:41:27 +0530 Subject: [BangPypers] how to read remote uploads In-Reply-To: <1287402845.2030.191.camel@localhost> (Kenneth Gonsalves's message of "Mon, 18 Oct 2010 17:24:05 +0530") References: <1287401432.2030.186.camel@localhost> <1287402845.2030.191.camel@localhost> Message-ID: <87tykj8zv4.fsf@gmail.com> On Mon, Oct 18 2010, Kenneth Gonsalves wrote: [...] > the gps program sends the info with a php url - I need to collect the > info and massage it before sending it to the webserver for display. So > I need a small python program to listen on that port and collect > whatever comes (is it socket programming or something like that?) >From your description, it sounds like a you need a simple program that listens on this port which will accept anything that comes in, process it and then send it to your actual web application. So, yes. this is a program that uses a socket. This is a simple proxy that will listen on a local port and then use some HTTP client library to send it to the web application. The pages in the Python docs which discuss 'SocketServer' has a small example which you can alter to suit your needs I think. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Mon Oct 18 14:13:51 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 18 Oct 2010 17:43:51 +0530 Subject: [BangPypers] how to read remote uploads In-Reply-To: <87tykj8zv4.fsf@gmail.com> References: <1287401432.2030.186.camel@localhost> <1287402845.2030.191.camel@localhost> <87tykj8zv4.fsf@gmail.com> Message-ID: <1287404031.2030.193.camel@localhost> On Mon, 2010-10-18 at 17:41 +0530, Noufal Ibrahim wrote: > >From your description, it sounds like a you need a simple program > that > listens on this port which will accept anything that comes in, process > it and then send it to your actual web application. So, yes. this is a > program that uses a socket. > > This is a simple proxy that will listen on a local port and then use > some HTTP client library to send it to the web application. > > The pages in the Python docs which discuss 'SocketServer' has a small > example which you can alter to suit your needs I think. thanks - will try it out -- regards Kenneth Gonsalves From abpillai at gmail.com Mon Oct 18 14:31:10 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 18 Oct 2010 18:01:10 +0530 Subject: [BangPypers] how to read remote uploads In-Reply-To: <1287404031.2030.193.camel@localhost> References: <1287401432.2030.186.camel@localhost> <1287402845.2030.191.camel@localhost> <87tykj8zv4.fsf@gmail.com> <1287404031.2030.193.camel@localhost> Message-ID: On Mon, Oct 18, 2010 at 5:43 PM, Kenneth Gonsalves wrote: > On Mon, 2010-10-18 at 17:41 +0530, Noufal Ibrahim wrote: > > >From your description, it sounds like a you need a simple program > > that > > listens on this port which will accept anything that comes in, process > > it and then send it to your actual web application. So, yes. this is a > > program that uses a socket. > > > > This is a simple proxy that will listen on a local port and then use > > some HTTP client library to send it to the web application. > > > > The pages in the Python docs which discuss 'SocketServer' has a small > > example which you can alter to suit your needs I think. > > thanks - will try it out > Or just use tcpdump as $ sudo tcpdump -A 'port 9000' on the machine where you want to capture the data. > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Mon Oct 18 14:51:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 18 Oct 2010 18:21:23 +0530 Subject: [BangPypers] how to read remote uploads In-Reply-To: (Anand Balachandran Pillai's message of "Mon, 18 Oct 2010 18:01:10 +0530") References: <1287401432.2030.186.camel@localhost> <1287402845.2030.191.camel@localhost> <87tykj8zv4.fsf@gmail.com> <1287404031.2030.193.camel@localhost> Message-ID: <87d3r78y0k.fsf@gmail.com> On Mon, Oct 18 2010, Anand Balachandran Pillai wrote: [...] > Or just use tcpdump as > > $ sudo tcpdump -A 'port 9000' > > on the machine where you want to capture the data. [...] I've not used tcpdump but wouldn't this give you a TCP packet level dump? Would not netcat (netcat -l 9000) be more appropriate for textual data (which is, I assume, what the GPS device sends out). -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Mon Oct 18 14:53:47 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 18 Oct 2010 18:23:47 +0530 Subject: [BangPypers] how to read remote uploads In-Reply-To: <87d3r78y0k.fsf@gmail.com> References: <1287401432.2030.186.camel@localhost> <1287402845.2030.191.camel@localhost> <87tykj8zv4.fsf@gmail.com> <1287404031.2030.193.camel@localhost> <87d3r78y0k.fsf@gmail.com> Message-ID: On Mon, Oct 18, 2010 at 6:21 PM, Noufal Ibrahim wrote: > On Mon, Oct 18 2010, Anand Balachandran Pillai wrote: > > > [...] > > > Or just use tcpdump as > > > > $ sudo tcpdump -A 'port 9000' > > > > on the machine where you want to capture the data. > > [...] > > I've not used tcpdump but wouldn't this give you a TCP packet level > dump? Would not netcat (netcat -l 9000) be more appropriate for textual > data (which is, I assume, what the GPS device sends out). > > -A gives you a (ascii) text dump, which is pretty useful for capturing HTML pages for example. This works very well for quick captures to debug your local web server for example. > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From venkat83 at gmail.com Tue Oct 19 07:18:40 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Tue, 19 Oct 2010 10:48:40 +0530 Subject: [BangPypers] Fwd: [Ilugc] [OT] Free E-Book For Programming Blender in Python In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Tha.Suresh Date: Tue, Oct 19, 2010 at 9:46 AM Subject: [Ilugc] [OT] Free E-Book For Programming Blender in Python To: ILUG-C , KanchiLug ---------- Forwarded message ---------- From: S. (Sam) Kritikos Date: Mon, Oct 18, 2010 at 4:11 AM Subject: [LUG at IITD:9997] Free E-Book For Programming Blender in Python To: Public Software Mailing List , iitdlug at googlegroups.com Folks, something of interest: Free E-Book For Programming Blender in Python http://www.geeks3d.com/20101006/python-free-e-book-for-programming-blender-in-python/ It is a 74p PDF file of code listings + source Regards S. (Sam) Kritikos -- LUG at IITD - http://tinyurl.com/ycueutm -- Regards, Tha.Suresh Kanchi Linux User Group Rocks !!!! http://kanchilug.wordpress.com My experiences with Linux are here, http://thasulinux.wordpress.com _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc From ataulla at gmail.com Tue Oct 19 12:22:09 2010 From: ataulla at gmail.com (Ataulla S H) Date: Tue, 19 Oct 2010 15:52:09 +0530 Subject: [BangPypers] how to set up WSGI with pylons 1.0 and soaplib 1.0.0beta8 Message-ID: Dear all, I am facing problem to setup webservice contoller in pylons using soaplib 1.0.0 beta8. anybody is having snippet to setup webservice with soaplib 1.0.0? Thanks in advance Ataulla SH From lawgon at au-kbc.org Wed Oct 20 07:17:15 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 10:47:15 +0530 Subject: [BangPypers] task tracker and issue manager Message-ID: <1287551835.2261.29.camel@localhost> hi, I am looking for a task tracker/issue manager for a project that is commencing. It is not a software project as such but something more comprehensive. I have used trac in the past - was wondering if there are any new sophisticated apps around for this? -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From nigelbabu at gmail.com Wed Oct 20 07:19:31 2010 From: nigelbabu at gmail.com (Nigel Babu) Date: Wed, 20 Oct 2010 10:49:31 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287551835.2261.29.camel@localhost> References: <1287551835.2261.29.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 10:47 AM, Kenneth Gonsalves wrote: > hi, > > I am looking for a task tracker/issue manager for a project that is > commencing. It is not a software project as such but something more > comprehensive. I have used trac in the past - was wondering if there are > any new sophisticated apps around for this? > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Hi Kenneth, Have you tried Redmine? Its built on ruby and I was recommended it multiple times. Not sure how good it is though. Warm Regards Nigel Babu From lawgon at au-kbc.org Wed Oct 20 07:22:21 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 10:52:21 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> Message-ID: <1287552141.2261.30.camel@localhost> On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > Have you tried Redmine? Its built on ruby and I was recommended it > multiple > times. Not sure how good it is though. heard good things about it - but as you said it is built on Ruby - I want python. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From thesujit at gmail.com Wed Oct 20 07:30:56 2010 From: thesujit at gmail.com (Sujit Ghosal) Date: Wed, 20 Oct 2010 11:00:56 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287552141.2261.30.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: I think you can give a try to "Trac" once. - Sujit On Wed, Oct 20, 2010 at 10:52 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > > Have you tried Redmine? Its built on ruby and I was recommended it > > multiple > > times. Not sure how good it is though. > > heard good things about it - but as you said it is built on Ruby - I > want python. > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From umar43 at gmail.com Wed Oct 20 07:38:07 2010 From: umar43 at gmail.com (Umar Shah) Date: Wed, 20 Oct 2010 11:08:07 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: Hi, With the customization that trac offers by way of plugins, I am sure you will find all your requirements fulfilled. Umar On Wed, Oct 20, 2010 at 11:00 AM, Sujit Ghosal wrote: > I think you can give a try to "Trac" once. > > - Sujit > > On Wed, Oct 20, 2010 at 10:52 AM, Kenneth Gonsalves >wrote: > > > On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > > > Have you tried Redmine? Its built on ruby and I was recommended it > > > multiple > > > times. Not sure how good it is though. > > > > heard good things about it - but as you said it is built on Ruby - I > > want python. > > -- > > regards > > Kenneth Gonsalves > > Senior Associate > > NRC-FOSS at AU-KBC > > > > _______________________________________________ > > 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 ramdaz at gmail.com Wed Oct 20 08:18:31 2010 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 20 Oct 2010 11:48:31 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 11:08 AM, Umar Shah wrote: > Hi, > > With the customization that trac offers by way of plugins, I am sure you > will find all your requirements fulfilled. > > > Umar > > On Wed, Oct 20, 2010 at 11:00 AM, Sujit Ghosal wrote: > > > I think you can give a try to "Trac" once. > > > > - Sujit > > > > On Wed, Oct 20, 2010 at 10:52 AM, Kenneth Gonsalves > >wrote: > > > > > On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > > > > Have you tried Redmine? Its built on ruby and I was recommended it > > > > multiple > > > > times. Not sure how good it is though. > > > > > > heard good things about it - but as you said it is built on Ruby - I > > > want python.Kenneth, > > Trac has improved a lot since last year, check 0.12. > > I am not sure what your sophesticated requirements are but this serves most > small team purposes. > > I also would like to draw your attention to http://bitbucket.org/. Its > free for five users. > > Ramdas > -- Ramdas S +91 9342 583 065 From jaganadhg at gmail.com Wed Oct 20 08:27:26 2010 From: jaganadhg at gmail.com (JAGANADH G) Date: Wed, 20 Oct 2010 11:57:26 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287552141.2261.30.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 10:52 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > > Have you tried Redmine? Its built on ruby and I was recommended it > > multiple > > times. Not sure how good it is though. > > heard good things about it - but as you said it is built on Ruby - I > want python. > > Even if it is in Ruby it is good. I am using it to manage my team activities in my office . There is a bitnami stack available for Redmine which makes the installation easy -- ********************************** JAGANADH G http://jaganadhg.freeflux.net/blog From lawgon at au-kbc.org Wed Oct 20 08:51:33 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 12:21:33 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: <1287557493.2261.43.camel@localhost> On Wed, 2010-10-20 at 11:48 +0530, Ramdas S wrote: > > I also would like to draw your attention to http://bitbucket.org/. I had stopped using trac once I shifted to bitbucket - but now there is a requirement for a private system hosted on our own server. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Wed Oct 20 08:53:23 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 12:23:23 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: <1287557603.2261.44.camel@localhost> On Wed, 2010-10-20 at 11:57 +0530, JAGANADH G wrote: > > heard good things about it - but as you said it is built on Ruby - I > > want python. > > > > > > Even if it is in Ruby it is good. I am using it to manage my team > activities > in my office . unfortunately I am a python fanatic ;-) -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Wed Oct 20 09:10:28 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 20 Oct 2010 12:40:28 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 11:57 AM, JAGANADH G wrote: > On Wed, Oct 20, 2010 at 10:52 AM, Kenneth Gonsalves >wrote: > > > On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > > > Have you tried Redmine? Its built on ruby and I was recommended it > > > multiple > > > times. Not sure how good it is though. > > > > heard good things about it - but as you said it is built on Ruby - I > > want python. > > > > > > Even if it is in Ruby it is good. I am using it to manage my team > activities > in my office . > There is a bitnami stack available for Redmine which makes the installation > easy > Blasphemy ! How dare you discuss Ruby in a all-Python list ! :) :) > -- > ********************************** > JAGANADH G > http://jaganadhg.freeflux.net/blog > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From nigelbabu at gmail.com Wed Oct 20 09:29:42 2010 From: nigelbabu at gmail.com (Nigel Babu) Date: Wed, 20 Oct 2010 12:59:42 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 12:40 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Wed, Oct 20, 2010 at 11:57 AM, JAGANADH G wrote: > > > On Wed, Oct 20, 2010 at 10:52 AM, Kenneth Gonsalves > >wrote: > > > > > On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > > > > Have you tried Redmine? Its built on ruby and I was recommended it > > > > multiple > > > > times. Not sure how good it is though. > > > > > > heard good things about it - but as you said it is built on Ruby - I > > > want python. > > > > > > > > > > Even if it is in Ruby it is good. I am using it to manage my team > > activities > > in my office . > > There is a bitnami stack available for Redmine which makes the > installation > > easy > > > > Blasphemy ! How dare you discuss Ruby in a all-Python list ! > > :) :) > > > > -- > > ********************************** > > JAGANADH G > > http://jaganadhg.freeflux.net/blog > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > I plead guilty. But yeah, I'm looking forward to something other than trac but built on python too. I'm still yet to find it and unsure if its worth the effort. From lorddaemon at gmail.com Wed Oct 20 09:49:05 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Wed, 20 Oct 2010 13:19:05 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: 'even if it's on Ruby?' :D If you're looking for a task manager, I've had extremely good experiences with Pivotal Tracker (which is hosted and free), so much so that we now even use it for our recruiting pipeline at C42 Engineering. If I had lots of $$$ to burn I'd use ThoughtWorks' Mingle but hey, who has that kind of cash. I generally avoid using bugzilla/trac/redmine etc. for what is effectively project management. They're great at what they do, and a damn pain for anything else. Sidu. > > On Wed, Oct 20, 2010 at 10:52 AM, Kenneth Gonsalves > > >wrote: > > > > > > > On Wed, 2010-10-20 at 10:49 +0530, Nigel Babu wrote: > > > > > Have you tried Redmine? Its built on ruby and I was recommended it > > > > > multiple > > > > > times. Not sure how good it is though. > > > > > > > > heard good things about it - but as you said it is built on Ruby - I > > > > want python. > > > > > > > > > > > > > > Even if it is in Ruby it is good. I am using it to manage my team > > > activities > > > in my office . > > > There is a bitnami stack available for Redmine which makes the > > installation > > > easy > > > > > > > Blasphemy ! How dare you discuss Ruby in a all-Python list ! > > > > :) :) > > > > > > > -- > > > ********************************** > > > JAGANADH G > > > http://jaganadhg.freeflux.net/blog > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > I plead guilty. But yeah, I'm looking forward to something other than trac > but built on python too. I'm still yet to find it and unsure if its worth > the effort. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sree at mahiti.org Wed Oct 20 10:01:12 2010 From: sree at mahiti.org (Sreekanth S Rameshaiah) Date: Wed, 20 Oct 2010 13:31:12 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287557603.2261.44.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <1287557603.2261.44.camel@localhost> Message-ID: On 20 October 2010 12:23, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 11:57 +0530, JAGANADH G wrote: > > > heard good things about it - but as you said it is built on Ruby - I > > > want python. > > > > > > > > > > Even if it is in Ruby it is good. I am using it to manage my team > > activities > > in my office . > > unfortunately I am a python fanatic ;-) > http://pinaxproject.com/ This is Django based and if you configure it as intranet tool, it sets up projects with basic task and issue management. - sree From noufal at gmail.com Wed Oct 20 10:18:45 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 20 Oct 2010 13:48:45 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: (Nigel Babu's message of "Wed, 20 Oct 2010 12:59:42 +0530") References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: <87fww1xonu.fsf@gmail.com> On Wed, Oct 20 2010, Nigel Babu wrote: [...] > I plead guilty. But yeah, I'm looking forward to something other than > trac but built on python too. I'm still yet to find it and unsure if > its worth the effort. [...] Trac is nice but with things like github, bitbucket etc. out there, it has taken a bit of a backseat. I have heard lot of "aigle" people using it with the agilo plugin though. Redmine started off without repeating some of the mistakes of trac e.g. multiple project support, multiple SCM integration, web based admin all of which trac later bolted on as plugins with limited success. I used redmine for a company whom I consulted for around a year ago and it was a pleasant experience. Since it's in Ruby, my ability to tweak plugins and code was limited but it mostly "did what I wanted" quite well. If you're looking for a powerful bug/issue tracker, there's Roundup. It's also written in Python (bugs.python.org uses it). Not very "user" friendly but nice for developers. There are a few nice PHP ones (although I imagine that would disqualify them) - MantisBT and Flyspray. I have some experience with the former and it's a slightly cleaner Bugzilla. Another option is to use Fossil (from the makers of Sqlite). It's an issue tracker, distributed version control system and personal wiki all in one tiny C executable. Doesn't need an internal 'server' to work and so people can collaborate quite nicely. I've toyed it with and found it nice but haven't really used it for a proper project. However, both of these are 'mostly' bug trackers or at best software project management tools. You mentioned that you're looking for something more general. Would something like a internal wiki work better? -- ~noufal http://nibrahim.net.in From ramdaz at gmail.com Wed Oct 20 10:37:47 2010 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 20 Oct 2010 14:07:47 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <1287557603.2261.44.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 1:31 PM, Sreekanth S Rameshaiah wrote: > On 20 October 2010 12:23, Kenneth Gonsalves wrote: > > > On Wed, 2010-10-20 at 11:57 +0530, JAGANADH G wrote: > > > > heard good things about it - but as you said it is built on Ruby - I > > > > want python. > > > > > > > > > > > > > > Even if it is in Ruby it is good. I am using it to manage my team > > > activities > > > in my office . > > > > unfortunately I am a python fanatic ;-) > > > > http://pinaxproject.com/ > > This is Django based and if you configure it as intranet tool, it sets up > projects with basic task and issue management > yeah its way too basic though > - sree > _______________________________________________ > 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 Oct 20 13:27:52 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 20 Oct 2010 16:57:52 +0530 Subject: [BangPypers] When *not* to use Python Message-ID: <87r5flw1c7.fsf@gmail.com> The project management thread highlighted this issue of "if it's not in Python, I don't want to use it". Assuming that most of the people here are mostly python enthusiasts or learners, I'm wondering when you would *not* use Python. Let's not conflate this with Open Source/Closed Source etc. I'm just interested in situations where you'd stay away from something *just* because it isn't in Python. The only reason I'd stay away from something like this is if I needed to work on it's code and it was in a language that I wasn't familiar with and didn't have the time to learn. Also, there are plently of situations where I'd jump to a language other than Python at the outset (e.g. for log file parsing, Perl still wins for me). Comments? -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Wed Oct 20 11:28:40 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 14:58:40 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> Message-ID: <1287566920.2261.45.camel@localhost> On Wed, 2010-10-20 at 13:19 +0530, Dark Seid wrote: > If you're looking for a task manager, I've had extremely good > experiences > with Pivotal Tracker agile? I forgot to mention that I suffer from arthritis so cannot do agile ;-) -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Wed Oct 20 11:32:40 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 15:02:40 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <87fww1xonu.fsf@gmail.com> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> Message-ID: <1287567160.2261.48.camel@localhost> On Wed, 2010-10-20 at 13:48 +0530, Noufal Ibrahim wrote: > However, both of these are 'mostly' bug trackers or at best software > project management tools. You mentioned that you're looking for > something more general. Would something like a internal wiki work > better? it is not software management - and many of the main users are suits - so something that they can wrap their pointy heads around. I love bitbucket and have a couple of projects going where the client is very easily able to give inputs and monitor things - once they grasp the fact that each issue should have only one issue. Such people are scared of wikis and invariably mess them up. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Wed Oct 20 13:53:40 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 20 Oct 2010 17:23:40 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287566920.2261.45.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <1287566920.2261.45.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 2:58 PM, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 13:19 +0530, Dark Seid wrote: > > If you're looking for a task manager, I've had extremely good > > experiences > > with Pivotal Tracker > > agile? I forgot to mention that I suffer from arthritis so cannot do > agile ;-) > If you don't "feel" agile, just do this before starting to code on your Python prompt. >>> import antigravity > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Wed Oct 20 13:54:41 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 17:24:41 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <1287575681.2261.55.camel@localhost> On Wed, 2010-10-20 at 16:57 +0530, Noufal Ibrahim wrote: > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in > a > language that I wasn't familiar with and didn't have the time to > learn. that is why I normally stay away from non-python stuff. My criterion is simple: if I am going to just use it, I am not bothered about the language. For example josm for openstreetmap is in java - if it had been in python I could have customised it for indian languages - but it was impossible for me to do it in java. But I can live with it (I simply write the names in tamil in kwrite or something and paste it into the josm interface). In the current scenario, I will have to do a fair amount of customisation, and am certainly not going to sit and learn ruby or whatever for it. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Wed Oct 20 13:56:33 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 20 Oct 2010 17:26:33 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > Maybe for "rough" n "dirty" use-once-and-throw parsers, but if you want to write reusable parser classes, Python can do an amazing job at it. You should be pretty good at using the "re" module and if possible have experience writing custom parsers and preferably burnt your fingers trying to understand the "HTMLParser" module :) I spent like 2 months in HP developing a log file "reverse" parser application for finding out software install times from the log files. All code in Python. I guess (and hope) they still use it there :) > > Comments? > > > -- > ~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 Wed Oct 20 13:57:14 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 17:27:14 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <1287566920.2261.45.camel@localhost> Message-ID: <1287575834.2261.56.camel@localhost> On Wed, 2010-10-20 at 17:23 +0530, Anand Balachandran Pillai wrote: > If you don't "feel" agile, just do this before starting to code > on your Python prompt. > > >>> import antigravity I wish I could do that to my golf ball -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From orsenthil at gmail.com Wed Oct 20 13:58:12 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 20 Oct 2010 17:28:12 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <20101020115811.GA20988@remy> On Wed, Oct 20, 2010 at 04:57:52PM +0530, Noufal Ibrahim wrote: > learners, I'm wondering when you would *not* use Python. Let's not When there is an extreme need for speed for processing large data sets. When it is more CPU intensive than Network IO Intensive. When the libraries and packages available are more mature in other languages.. These are the situations I would consider other language. For first and second cases, it would mostly go for C++ and the last case, Java. -- Senthil Q: What's the difference between Bell Labs and the Boy Scouts of America? A: The Boy Scouts have adult supervision. From noufal at gmail.com Wed Oct 20 13:58:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 20 Oct 2010 17:28:23 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287567160.2261.48.camel@localhost> (Kenneth Gonsalves's message of "Wed, 20 Oct 2010 15:02:40 +0530") References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> Message-ID: <87mxq9vzxc.fsf@gmail.com> On Wed, Oct 20 2010, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 13:48 +0530, Noufal Ibrahim wrote: >> However, both of these are 'mostly' bug trackers or at best software >> project management tools. You mentioned that you're looking for >> something more general. Would something like a internal wiki work >> better? > > it is not software management - and many of the main users are suits - > so something that they can wrap their pointy heads around. I love > bitbucket and have a couple of projects going where the client is very > easily able to give inputs and monitor things - once they grasp the > fact that each issue should have only one issue. Such people are > scared of wikis and invariably mess them up. Makes sense. It sounds like you just need an issue tracker. I think your options are limited to roundup and trac. -- ~noufal http://nibrahim.net.in From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From santrajan at gmail.com Wed Oct 20 14:04:44 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 20 Oct 2010 17:34:44 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: I have a slightly tangential take on this subject. I do web development and it is entirely python nowadays. Having said that let me quote Eric Raymond. *"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."* I have learned and use Clojure a dialect of Lisp for some odd jobs just for this reason. On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From santrajan at gmail.com Wed Oct 20 14:04:44 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 20 Oct 2010 17:34:44 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: I have a slightly tangential take on this subject. I do web development and it is entirely python nowadays. Having said that let me quote Eric Raymond. *"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."* I have learned and use Clojure a dialect of Lisp for some odd jobs just for this reason. On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From santrajan at gmail.com Wed Oct 20 14:04:44 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 20 Oct 2010 17:34:44 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: I have a slightly tangential take on this subject. I do web development and it is entirely python nowadays. Having said that let me quote Eric Raymond. *"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."* I have learned and use Clojure a dialect of Lisp for some odd jobs just for this reason. On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From santrajan at gmail.com Wed Oct 20 14:04:44 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 20 Oct 2010 17:34:44 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: I have a slightly tangential take on this subject. I do web development and it is entirely python nowadays. Having said that let me quote Eric Raymond. *"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."* I have learned and use Clojure a dialect of Lisp for some odd jobs just for this reason. On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From sudheer.s at sudheer.net Wed Oct 20 13:52:46 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 20 Oct 2010 17:22:46 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBED80E.6070804@sudheer.net> > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > I agree. As the Perl monks put it, use the right tool for the right job. You should know when to stop looking for a programming language specific solution. If you want features found only in Redmine and there's nothing like Redmine in Python, just use Redmine. Trying to get something closest to Redmine in Python and getting it work like Redmine might not be worth it. On the other hand, it might be a good idea to start an open source project to build a Redmine clone in Python. Creating something like Redmine will take several years. IIRC, the Redmine folks developed it for four years before releasing 1.0. My comments don't imply I'm a Ruby fan. Regards, -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From gopalakrishnan.subramani at gmail.com Wed Oct 20 14:08:05 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Wed, 20 Oct 2010 17:38:05 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <20101020115811.GA20988@remy> References: <87r5flw1c7.fsf@gmail.com> <20101020115811.GA20988@remy> Message-ID: I won't develop DESKTOP based application in Python. Desktop means non-browser based application but like MFC/VC++ stuffs. On Wed, Oct 20, 2010 at 5:28 PM, Senthil Kumaran wrote: > On Wed, Oct 20, 2010 at 04:57:52PM +0530, Noufal Ibrahim wrote: > > learners, I'm wondering when you would *not* use Python. Let's not > > When there is an extreme need for speed for processing large data > sets. > When it is more CPU intensive than Network IO Intensive. > When the libraries and packages available are more mature in other > languages.. > > These are the situations I would consider other language. For first > and second cases, it would mostly go for C++ and the last case, Java. > > -- > Senthil > > Q: What's the difference between Bell Labs and the Boy Scouts of > America? > A: The Boy Scouts have adult supervision. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From santrajan at gmail.com Wed Oct 20 14:04:44 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 20 Oct 2010 17:34:44 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: I have a slightly tangential take on this subject. I do web development and it is entirely python nowadays. Having said that let me quote Eric Raymond. *"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."* I have learned and use Clojure a dialect of Lisp for some odd jobs just for this reason. On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From santrajan at gmail.com Wed Oct 20 14:04:44 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 20 Oct 2010 17:34:44 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: I have a slightly tangential take on this subject. I do web development and it is entirely python nowadays. Having said that let me quote Eric Raymond. *"Lisp is worth learning for the profound enlightenment experience you will have when you finally get it; that experience will make you a better programmer for the rest of your days, even if you never actually use Lisp itself a lot."* I have learned and use Clojure a dialect of Lisp for some odd jobs just for this reason. On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- http://hi.im/santosh From lorddaemon at gmail.com Wed Oct 20 14:09:32 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Wed, 20 Oct 2010 17:39:32 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: I was wondering if I should bring this up because I was curious, but then decided not to because it's also a sensitive subject. > The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > Agreed. Also, I'd steer clear of something if it was in an aesthetically displeasing language even if I do know it, or have the time to learn. On the other hand if the feature set was compelling enough I might still use it anyway. For example MediaWiki, Wordpress and Drupal fall into this bucket for me. By and large though, my primary driver is productivity. I don't care about much else. If it's more productive (for me), I'll adopt it, whether it's a OS, language, library, tool, community or methodology. Examples for me where I've made switches - OSX, Ruby, IntelliJ, XP, TDD. And if I come across something more productive, I'll switch again. Best, Sidu. http://c42.in On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? > > > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Wed Oct 20 14:12:12 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 17:42:12 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <4CBED80E.6070804@sudheer.net> References: <87r5flw1c7.fsf@gmail.com> <4CBED80E.6070804@sudheer.net> Message-ID: <1287576732.2261.57.camel@localhost> On Wed, 2010-10-20 at 17:22 +0530, Sudheer Satyanarayana wrote: > > Comments? > > > > > I agree. As the Perl monks put it, use the right tool for the right > job. > You should know when to stop looking for a programming language > specific > solution. ok - but why repeat your mail as many 6 times? are more copies on the way? -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Wed Oct 20 14:16:33 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 17:46:33 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <4CBED80E.6070804@sudheer.net> References: <87r5flw1c7.fsf@gmail.com> <4CBED80E.6070804@sudheer.net> Message-ID: <1287576993.2261.58.camel@localhost> On Wed, 2010-10-20 at 17:22 +0530, Sudheer Satyanarayana wrote: > > Comments? > > > > > I agree. As the Perl monks put it, use the right tool for the right > job. > You should know when to stop looking for a programming language > specific > solution. 9th time this message has come -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Wed Oct 20 14:17:45 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 20 Oct 2010 17:47:45 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: References: <87r5flw1c7.fsf@gmail.com> Message-ID: <1287577065.2261.60.camel@localhost> On Wed, 2010-10-20 at 17:34 +0530, Santosh Rajan wrote: > I have learned and use Clojure a dialect of Lisp for some odd jobs > just for > this reason. 4th time this message has hit the list (I think something has gone wrong somewhere - either in this list or in gmail) -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lgp171188 at gmail.com Wed Oct 20 14:27:11 2010 From: lgp171188 at gmail.com (Guruprasad) Date: Wed, 20 Oct 2010 17:57:11 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <1287576993.2261.58.camel@localhost> References: <87r5flw1c7.fsf@gmail.com> <4CBED80E.6070804@sudheer.net> <1287576993.2261.58.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 5:46 PM, Kenneth Gonsalves wrote: >> I agree. As the Perl monks put it, use the right tool for the right >> job. >> You should know when to stop looking for a programming language >> specific >> solution. > > 9th time this message has come I have got it once, just once. Thanks & Regards, Guruprasad From steve at lonetwin.net Wed Oct 20 14:54:25 2010 From: steve at lonetwin.net (steve) Date: Wed, 20 Oct 2010 18:24:25 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: References: <87r5flw1c7.fsf@gmail.com> <20101020115811.GA20988@remy> Message-ID: <4CBEE681.90700@lonetwin.net> On 10/20/2010 05:38 PM, Gopalakrishnan Subramani wrote: > I won't develop DESKTOP based application in Python. Desktop means > non-browser based application but like MFC/VC++ stuffs. > Interesting. Not that I know anything about MFC/VC++ but in the linux world a fairly large number of desktop apps (at least gtk based ones) are written in python. Why is the situation different in windows ? cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From steve at lonetwin.net Wed Oct 20 15:03:48 2010 From: steve at lonetwin.net (steve) Date: Wed, 20 Oct 2010 18:33:48 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBEE8B4.9070703@lonetwin.net> Hi, On 10/20/2010 05:34 PM, Santosh Rajan wrote: > I have a slightly tangential take on this subject. I do web development and > it is entirely python nowadays. Having said that let me quote Eric Raymond. > *"Lisp is worth learning for the profound enlightenment experience you will > have when you finally get it; that experience will make you a better > programmer for the rest of your days, even if you never actually use Lisp > itself a lot."* > > I have learned and use Clojure a dialect of Lisp for some odd jobs just for > this reason. > I've had this on my todo list for sometime but then I read .. http://sayspy.blogspot.com/2010/10/my-thoughts-on-clojure.html ...which made me re-think whether it was worth the effort (I already know a smattering of scheme but not well enough to consider it for anything resembling serious work). Just curious, what do you (or anyone who has bothered learning clojure) think about that ? cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From selva4210 at gmail.com Wed Oct 20 15:03:51 2010 From: selva4210 at gmail.com (Azhagu Selvan SP) Date: Wed, 20 Oct 2010 18:33:51 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <1287577065.2261.60.camel@localhost> References: <87r5flw1c7.fsf@gmail.com> <1287577065.2261.60.camel@localhost> Message-ID: <1287579831.1772.6.camel@tamizhgeek-desktop> On Wed, 2010-10-20 at 17:47 +0530, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 17:34 +0530, Santosh Rajan wrote: > > I have learned and use Clojure a dialect of Lisp for some odd jobs > > just for > > this reason. > > 4th time this message has hit the list (I think something has gone wrong > somewhere - either in this list or in gmail) Some problem with your mail server I suppose. I received it only once and there is a single message in the archive too. -- Azhagu Selvan SP http://azhaguselvan.co.cc From ramdaz at gmail.com Wed Oct 20 15:08:33 2010 From: ramdaz at gmail.com (Ramdas S) Date: Wed, 20 Oct 2010 18:38:33 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <4CBEE681.90700@lonetwin.net> References: <87r5flw1c7.fsf@gmail.com> <20101020115811.GA20988@remy> <4CBEE681.90700@lonetwin.net> Message-ID: On Wed, Oct 20, 2010 at 6:24 PM, steve wrote: > On 10/20/2010 05:38 PM, Gopalakrishnan Subramani wrote: > >> I won't develop DESKTOP based application in Python. Desktop means >> non-browser based application but like MFC/VC++ stuffs. >> >> > The thumbrule is language is not important, if we need not maintain the software or will never need to and also provided the software itself is supported, and can be trusted. Language is important if you need to maintain, value add on the software -- Ramdas S +91 9342 583 065 From abpillai at gmail.com Wed Oct 20 15:21:23 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 20 Oct 2010 18:51:23 +0530 Subject: [BangPypers] Co-operating threads Message-ID: I am not sure how many of you have had a chance to use generators to implement "co-operating" aka "micro" threads in Python. Dr. David Mertz gives a good introduction to the topic in his charming Python article here. http://www.ibm.com/developerworks/library/l-pythrd.html The other day I had a problem of creating a text file containing all the paths of C/C++ source code inside a directory tree containing rather a large number of source files (around 10 million). The normal approach I take in these cases is to write an os.walk function which keeps writing to a list and finally dump the list to a file. However since there could be around a million or more entries in the list, I thought I will whip up a solution using micro-threads with a "writer" and a "traverser" light weight thread. The traverser willl traverse a folder, write contents to the list and yield wherein the scheduler will automatically call the writer. The writer flushes the list to the file and yields wherein the scheduler switches back to the traverser. The code is here. It essentially makes use of the same skeleton as the code sample presented by David in his article. http://dpaste.com/hold/260673/ My questions are aimed at those who have some experience working with light-weight threads/generators in Python or with Stackless. 1. Can this be done better - Say in Python 3.0 ? 2. How does one do this in Stackless ? 3. If you have any experience with countless other Python concurrency libraries for solving problems like this ? 4. How will you do this using "multiprocess" module ? I hope this makes up for an interesting discussion. Thanks, -- --Anand From noufal at gmail.com Wed Oct 20 15:22:17 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 20 Oct 2010 18:52:17 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: (Anand Balachandran Pillai's message of "Wed, 20 Oct 2010 17:26:33 +0530") References: <87r5flw1c7.fsf@gmail.com> Message-ID: <87bp6pvw1i.fsf@gmail.com> On Wed, Oct 20 2010, Anand Balachandran Pillai wrote: [...] > Maybe for "rough" n "dirty" use-once-and-throw parsers, [...] Exactly. My point is that there are good use cases for it as there are for most languages and sticking to a langauge just because one has some kind of emotional attachment to it seems to me to be unwise. Also, I have seen perl parsers written by experienced perl hands that are very readable, maintainable and tested so it's not *only* for rough and dirty use-one-and-throw away code. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Wed Oct 20 15:27:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 20 Oct 2010 18:57:23 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <4CBEE681.90700@lonetwin.net> (steve@lonetwin.net's message of "Wed, 20 Oct 2010 18:24:25 +0530") References: <87r5flw1c7.fsf@gmail.com> <20101020115811.GA20988@remy> <4CBEE681.90700@lonetwin.net> Message-ID: <8762wxvvt0.fsf@gmail.com> On Wed, Oct 20 2010, steve wrote: > On 10/20/2010 05:38 PM, Gopalakrishnan Subramani wrote: >> I won't develop DESKTOP based application in Python. Desktop means >> non-browser based application but like MFC/VC++ stuffs. >> > > Interesting. Not that I know anything about MFC/VC++ but in the linux > world a fairly large number of desktop apps (at least gtk based ones) > are written in python. Why is the situation different in windows ? [...] I think it's cultural. Windows GUIs (atleast till recently) all use the Microsoft sanctioned set of widgets and controls and the ecosystem around it so it was the "one way" to develop apps there. Things are different now with cross platform widget sets. In the free software desktop market, there's a lot of choice which results in multiple options. -- ~noufal http://nibrahim.net.in From santrajan at gmail.com Wed Oct 20 15:31:10 2010 From: santrajan at gmail.com (Santosh Rajan) Date: Wed, 20 Oct 2010 19:01:10 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <4CBEE8B4.9070703@lonetwin.net> References: <87r5flw1c7.fsf@gmail.com> <4CBEE8B4.9070703@lonetwin.net> Message-ID: First of all I don't like java, and just like the author suggested Clojure is tightly coupled to java. However even if you don't know java you still can program in clojure like I do. My motivation to learn clojure was entirely due to Eric Raymond's quote. Of course I could have learned any other "Lisp" dialect for that. But one of the advantages of clojure is that all the available java code is there to access without having to learn java. Also Clojure gives emphasis to the concept of immutability of data which is actually a slightly philosophical concept which I agree with. On Wed, Oct 20, 2010 at 6:33 PM, steve wrote: > Hi, > > > On 10/20/2010 05:34 PM, Santosh Rajan wrote: > >> I have a slightly tangential take on this subject. I do web development >> and >> it is entirely python nowadays. Having said that let me quote Eric >> Raymond. >> *"Lisp is worth learning for the profound enlightenment experience you >> will >> have when you finally get it; that experience will make you a better >> programmer for the rest of your days, even if you never actually use Lisp >> itself a lot."* >> >> I have learned and use Clojure a dialect of Lisp for some odd jobs just >> for >> this reason. >> >> > I've had this on my todo list for sometime but then I read .. > > http://sayspy.blogspot.com/2010/10/my-thoughts-on-clojure.html > > ...which made me re-think whether it was worth the effort (I already know a > smattering of scheme but not well enough to consider it for anything > resembling serious work). > > Just curious, what do you (or anyone who has bothered learning clojure) > think about that ? > > > cheers, > - steve > > -- > random spiel: http://lonetwin.net/ > what i'm stumbling into: http://lonetwin.stumbleupon.com/ > -- http://hi.im/santosh From noufal at gmail.com Wed Oct 20 15:36:44 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 20 Oct 2010 19:06:44 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: (Dark Seid's message of "Wed, 20 Oct 2010 17:39:32 +0530") References: <87r5flw1c7.fsf@gmail.com> Message-ID: <87y69tugsz.fsf@gmail.com> On Wed, Oct 20 2010, Dark Seid wrote: [...] > By and large though, my primary driver is productivity. I don't care > about much else. If it's more productive (for me), I'll adopt it, > whether it's a OS, language, library, tool, community or > methodology. Examples for me where I've made switches - OSX, Ruby, > IntelliJ, XP, TDD. And if I come across something more productive, > I'll switch again. [...] Ever the pragmatist eh? :) But you're right. I'd add a few things like maintainability and long term readability as well. Other things that affect my general acceptance are community, legacy code and of course money. -- ~noufal http://nibrahim.net.in From steve at lonetwin.net Wed Oct 20 14:40:30 2010 From: steve at lonetwin.net (steve) Date: Wed, 20 Oct 2010 18:10:30 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: <4CBEE33E.6050309@lonetwin.net> On 10/20/2010 04:57 PM, Noufal Ibrahim wrote: > > The project management thread highlighted this issue of "if it's not in > Python, I don't want to use it". > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > I'm just interested in situations where you'd stay away from something > *just* because it isn't in Python. The only reason I'd stay away from > something like this is if I needed to work on it's code and it was in a > language that I wasn't familiar with and didn't have the time to learn. > > Also, there are plently of situations where I'd jump to a language other > than Python at the outset (e.g. for log file parsing, Perl still wins > for me). > > Comments? ...for systems programming obviously, corepy[1] and pyasm[2] notwithstanding. :) Seriously though, one aspect is small to medium sized automation/shell scripts where although sometimes one is tempted to use the 'power' of python, doing a `ls` instead of os.listdir('.') and `/some/random/command` instead of using the shutil/commands/subprocess ...etc modules is more pragmatic. cheers, - steve [1] http://www.corepy.org/ [2] http://members.verizon.net/~olsongt/usersGuide.html -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From anomit.ghosh at gmail.com Wed Oct 20 16:06:02 2010 From: anomit.ghosh at gmail.com (Anomit Ghosh) Date: Wed, 20 Oct 2010 19:36:02 +0530 Subject: [BangPypers] Co-operating threads In-Reply-To: References: Message-ID: Talking of co-operating "threads", I like the idea of greenthreads implemented with the help of greenlets[1] in eventlet [2]. Another similar library is gevent[3] that uses a "hub" like eventlet but that purely uses libevent. You can leave the scheduling upto the hubs in both these libraries which results in lot less boilerplate with the added advantage of writing asynchronous code in the synchronous style that we are generally used to. The hub will take care of switching between the greenlets when they perform a "blocking" operation. It's difficult for me to explain all of these in one single reply. I'd suggest going through some of the examples in their docs for a better understanding of this unusual pattern of writing programs. No callbacks, no reactors, no deferreds ;-) [1] http://pypi.python.org/pypi/greenlet [2] http://eventlet.net [3] http://gevent.org -- Anomit Ghosh From orsenthil at gmail.com Wed Oct 20 19:01:37 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 20 Oct 2010 22:31:37 +0530 Subject: [BangPypers] Co-operating threads In-Reply-To: References: Message-ID: On Wed, Oct 20, 2010 at 6:51 PM, Anand Balachandran Pillai wrote: > 3. If you have any experience with countless other Python concurrency > libraries for solving problems like this ? I recently had chance to use twisted.internet.task.Cooperator for doing a large file transfers in parallel with having some control over network load. It was very interesting to try that. In general, after studying twisted's model dealing with concurrency, I like the way it's various classes and abstractions are designed. Interested to learn more 'different approaches' which others have adopted too. In python 3, with futures coming up, you can do something like the twisted's model. I have not read the linked article, shall read it. -- Senthil From lawgon at au-kbc.org Thu Oct 21 06:51:00 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 21 Oct 2010 10:21:00 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <1287579831.1772.6.camel@tamizhgeek-desktop> References: <87r5flw1c7.fsf@gmail.com> <1287577065.2261.60.camel@localhost> <1287579831.1772.6.camel@tamizhgeek-desktop> Message-ID: <1287636660.2261.75.camel@localhost> On Wed, 2010-10-20 at 18:33 +0530, Azhagu Selvan SP wrote: > > 4th time this message has hit the list (I think something has gone > wrong > > somewhere - either in this list or in gmail) > > Some problem with your mail server I suppose. I received it only once > and there is a single message in the archive too. I think gmail filters out duplicates -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From nitin.nitp at gmail.com Sun Oct 24 02:39:02 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Sat, 23 Oct 2010 17:39:02 -0700 Subject: [BangPypers] Python debugger help Message-ID: Hi All, I am using python 2.6.5 for one of testing framework development in my company. But the framework sometimes carses. I need to debug it. Can anyone please help me with some kind of Document/link or similar things. The think to notice is I need to debug the crash. Thanks in Advance -- Nitin K From noufal at gmail.com Sun Oct 24 06:48:07 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 24 Oct 2010 10:18:07 +0530 Subject: [BangPypers] Python debugger help In-Reply-To: (Nitin Kumar's message of "Sat, 23 Oct 2010 17:39:02 -0700") References: Message-ID: <87eibgp56g.fsf@gmail.com> On Sun, Oct 24 2010, Nitin Kumar wrote: > Hi All, > > I am using python 2.6.5 for one of testing framework development in my > company. But the framework sometimes carses. > I need to debug it. Can anyone please help me with some kind of > Document/link or similar things. > > The think to notice is I need to debug the crash. There is the inbuilt pdb. You can look at the official docs for it to get some help. I've had better luck with logging/print statements than with pdb. Sometimes, when I need to step through, I stick an "import pdb; pdb.set_trace()" at the place where i need the program to get interrupted and then use it from there. -- ~noufal http://nibrahim.net.in From anomit.ghosh at gmail.com Sun Oct 24 17:12:29 2010 From: anomit.ghosh at gmail.com (Anomit Ghosh) Date: Sun, 24 Oct 2010 20:42:29 +0530 Subject: [BangPypers] Co-operating threads In-Reply-To: References: Message-ID: I took a look at the code you pasted and tried to quickly convert it into a script[1] that uses eventlet. It's been quite some time since I used eventlet like the way it's meant to be and I believe there might be another more efficient way of getting this done. But anyway, it reduces the lines of code needed drastically. [1] http://dpaste.de/hd05/ -- Anomit Ghosh From dhananjay.nene at gmail.com Mon Oct 25 04:03:11 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 25 Oct 2010 07:33:11 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: <87r5flw1c7.fsf@gmail.com> References: <87r5flw1c7.fsf@gmail.com> Message-ID: On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > > Assuming that most of the people here are mostly python enthusiasts or > learners, I'm wondering when you would *not* use Python. Let's not > conflate this with Open Source/Closed Source etc. > > Python is the language which has (what in business terms is coined as) the right of first refusal. ie. evaluate something whether it really makes sense in python, and if not in python then start exploring what else. The primary reasons which may encourage me to use a language other than python are : a. Need for raw CPU power. Yes there are a few of such use cases. When purely CPU driven and when you really really need the CPU badly (which is probably less than 5% cases) python performance is really poor. b. Need for high amounts of multithreading even while being largely CPU bound. Yes - both situations can be handled by escaping to C from python, but I would much rather handle these in Java (or languages based on JVM) rather than C unless I am in a very constrained hardware situation. On a separate note I do believe as we start heading towards the 32 core situation (say in 5 yrs time) - there better exist a better solution than the GIL :) > -- > ~noufal > http://nibrahim.net.in > > _______________________________________________ > 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 dhananjay.nene at gmail.com Mon Oct 25 04:20:03 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Mon, 25 Oct 2010 07:50:03 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 10:49 AM, Nigel Babu wrote: > On Wed, Oct 20, 2010 at 10:47 AM, Kenneth Gonsalves >wrote: > > > hi, > > > > I am looking for a task tracker/issue manager for a project that is > > commencing. It is not a software project as such but something more > > comprehensive. I have used trac in the past - was wondering if there are > > any new sophisticated apps around for this? > > -- > > regards > > Kenneth Gonsalves > > Senior Associate > > NRC-FOSS at AU-KBC > > > > Hi Kenneth, > > Have you tried Redmine? Its built on ruby and I was recommended it > multiple > times. Not sure how good it is though. > +1 for redmine. Unless I want to hack a tool, what language it is written in is really unimportant to me. And quite frankly ruby isn't such a unpalatable language to hack should the need arise either :) Dhananjay > > Warm Regards > Nigel Babu > _______________________________________________ > 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 vsapre80 at gmail.com Mon Oct 25 09:00:11 2010 From: vsapre80 at gmail.com (Vishal) Date: Mon, 25 Oct 2010 12:30:11 +0530 Subject: [BangPypers] Co-operating threads In-Reply-To: References: Message-ID: Hi, I have greenlets on my system, but I dont see any info about gevent or eventlet on Windows. The websites all talk in terms of Linux, MacOsX etc... Do you know if the same are available on Windows too? or any kind of such framework for Windows. Thanks and best regards, Vishal Sapre On Sun, Oct 24, 2010 at 8:42 PM, Anomit Ghosh wrote: > I took a look at the code you pasted and tried to quickly convert it > into a script[1] that uses eventlet. It's been quite some time since I > used eventlet like the way it's meant to be and I believe there might > be another more efficient way of getting this done. But anyway, it > reduces the lines of code needed drastically. > > [1] http://dpaste.de/hd05/ > > -- > Anomit Ghosh > _______________________________________________ > 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? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." From vsapre80 at gmail.com Mon Oct 25 09:04:21 2010 From: vsapre80 at gmail.com (Vishal) Date: Mon, 25 Oct 2010 12:34:21 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287567160.2261.48.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> Message-ID: For your requirements: +10 for Trac -2 for the agilo Trac plugin (has issues with ldap based authentication etc) ~ Vishal On Wed, Oct 20, 2010 at 3:02 PM, Kenneth Gonsalves wrote: > On Wed, 2010-10-20 at 13:48 +0530, Noufal Ibrahim wrote: > > However, both of these are 'mostly' bug trackers or at best software > > project management tools. You mentioned that you're looking for > > something more general. Would something like a internal wiki work > > better? > > it is not software management - and many of the main users are suits - > so something that they can wrap their pointy heads around. I love > bitbucket and have a couple of projects going where the client is very > easily able to give inputs and monitor things - once they grasp the fact > that each issue should have only one issue. Such people are scared of > wikis and invariably mess them up. > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > 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? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." From lawgon at au-kbc.org Mon Oct 25 09:10:55 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 25 Oct 2010 12:40:55 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> Message-ID: <1287990655.2261.249.camel@localhost> On Mon, 2010-10-25 at 12:34 +0530, Vishal wrote: > For your requirements: > +10 for Trac '+10' is not recognised as a valid vote - valid votes are -1,-0,+0 and +1 -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From orsenthil at gmail.com Mon Oct 25 09:40:24 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 25 Oct 2010 13:10:24 +0530 Subject: [BangPypers] Co-operating threads In-Reply-To: References: Message-ID: <20101025074024.GB3116@remy> On Sun, Oct 24, 2010 at 08:42:29PM +0530, Anomit Ghosh wrote: > I took a look at the code you pasted and tried to quickly convert it > into a script[1] that uses eventlet. It's been quite some time since I > [1] http://dpaste.de/hd05/ I don't see the interaction of eventlet and GreenPool in this snippet. How does it happen? -- Senthil Until Eve arrived, this was a man's world. -- Richard Armour From anomit.ghosh at gmail.com Mon Oct 25 09:48:43 2010 From: anomit.ghosh at gmail.com (Anomit Ghosh) Date: Mon, 25 Oct 2010 13:18:43 +0530 Subject: [BangPypers] Co-operating threads In-Reply-To: <20101025074024.GB3116@remy> References: <20101025074024.GB3116@remy> Message-ID: On Mon, Oct 25, 2010 at 1:10 PM, Senthil Kumaran wrote: > I don't see the interaction of eventlet and GreenPool in this > snippet. How does it happen? > Whoops, really sorry about that. I was trying something else with GreenPool. Forgot to remove that line. -- Anomit Ghosh From venkat83 at gmail.com Mon Oct 25 14:20:14 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Mon, 25 Oct 2010 17:50:14 +0530 Subject: [BangPypers] [X-POST] Firesheep Message-ID: Neat stuff : http://codebutler.com/firesheep Solution : http://techcrunch.com/2010/10/25/firesheep/ -V- http://twitter.com/venkasub From rajeev.sebastian at gmail.com Mon Oct 25 14:21:18 2010 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Mon, 25 Oct 2010 17:51:18 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287990655.2261.249.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> Message-ID: I'm currently developing a task/issue management system; Django based. Currently I havent made it open source (need to improve further before I do that), but I'm using it in production. Let me know if you're interested to see it. Regards Rajeev J Sebastian On Mon, Oct 25, 2010 at 12:40 PM, Kenneth Gonsalves wrote: > On Mon, 2010-10-25 at 12:34 +0530, Vishal wrote: >> For your requirements: >> +10 for Trac > > '+10' is not recognised as a valid vote - valid votes are -1,-0,+0 and > +1 > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Mon Oct 25 14:30:06 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 25 Oct 2010 18:00:06 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> Message-ID: <1288009806.2261.262.camel@localhost> On Mon, 2010-10-25 at 17:51 +0530, Rajeev J Sebastian wrote: > I'm currently developing a task/issue management system; Django based. > Currently I havent made it open source (need to improve further before > I do that), but I'm using it in production. open source it and we can help to improve it -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From rajeev.sebastian at gmail.com Mon Oct 25 19:52:52 2010 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Mon, 25 Oct 2010 23:22:52 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1288009806.2261.262.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: On Mon, Oct 25, 2010 at 6:00 PM, Kenneth Gonsalves wrote: > On Mon, 2010-10-25 at 17:51 +0530, Rajeev J Sebastian wrote: >> I'm currently developing a task/issue management system; Django based. >> Currently I havent made it open source (need to improve further before >> I do that), but I'm using it in production. > > open source it and we can help to improve it Who exactly is 'we'? --- The project is moving forward towards an open source model. I am still looking out for collaborators (especially UI/UX people and Mootools JS devs). People who are sincerely interested in contributing towards this solution can contact me for a demo and discussions. I've already spent Rs 1 lakh+ towards the development of this project, so only very serious people need approach. Regards Rajeev J Sebastian From lorddaemon at gmail.com Mon Oct 25 20:18:43 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Mon, 25 Oct 2010 23:48:43 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: > > so only very serious people need approach. > I could be stating the obvious here, but I suspect that the kind of people you're looking for will only contribute to an OSS project if it's got great code or solves a problem in an interesting/effective way or both. Nobody can figure this out *before* you open source it, so you can't expect people to figure out up-front how serious they will be about contributing. Best, Sidu. http://c42.in On Mon, Oct 25, 2010 at 11:22 PM, Rajeev J Sebastian < rajeev.sebastian at gmail.com> wrote: > On Mon, Oct 25, 2010 at 6:00 PM, Kenneth Gonsalves > wrote: > > On Mon, 2010-10-25 at 17:51 +0530, Rajeev J Sebastian wrote: > >> I'm currently developing a task/issue management system; Django based. > >> Currently I havent made it open source (need to improve further before > >> I do that), but I'm using it in production. > > > > open source it and we can help to improve it > > Who exactly is 'we'? > > --- > > The project is moving forward towards an open source model. I am still > looking out for collaborators (especially UI/UX people and Mootools JS > devs). People who are sincerely interested in contributing towards > this solution can contact me for a demo and discussions. I've already > spent Rs 1 lakh+ towards the development of this project, so only very > serious people need approach. > > Regards > Rajeev J Sebastian > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From vsapre80 at gmail.com Mon Oct 25 20:35:45 2010 From: vsapre80 at gmail.com (Vishal) Date: Tue, 26 Oct 2010 00:05:45 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287990655.2261.249.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> Message-ID: Ok. Sorry about that. +1 for Trac then. Also, if you its possible to shell out some money....please do have a look at Altassian's JIRA. For $10 for 10 users, its the cheapest and indeed one of the best project management tools. Thanks and best regards, Vishal Sapre On Mon, Oct 25, 2010 at 12:40 PM, Kenneth Gonsalves wrote: > On Mon, 2010-10-25 at 12:34 +0530, Vishal wrote: > > For your requirements: > > +10 for Trac > > '+10' is not recognised as a valid vote - valid votes are -1,-0,+0 and > +1 > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > 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? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." From rajeev.sebastian at gmail.com Mon Oct 25 21:02:07 2010 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Tue, 26 Oct 2010 00:32:07 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: On Mon, Oct 25, 2010 at 11:48 PM, Dark Seid wrote: >> >> so only very serious people need approach. >> > I could be stating the obvious here, but I suspect that the kind of people > you're looking for will only contribute to an OSS project if it's got great > code or solves a problem in an interesting/effective way or both. Nobody can > figure this out *before* you open source it, so you can't expect people to > figure out up-front how serious they will be about contributing. Yes, you were stating the obvious. Someone might be serious about contributing, if for e.g., they have time on their hands, experience in developing quality products, and the will to spend it effectively towards a project, which ultimately may not pay off financially (since it is open source). In this case, I'm willing to demo the system and show them the code; that is the means by which interested *serious* contributors can decide if they want to help out, or work on other open source projects. Loose statements like "we will help to improve it" is not a sign of a serious contributor, in fact probably the opposite. Regards Rajeev J Sebastian From lorddaemon at gmail.com Mon Oct 25 21:07:51 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Tue, 26 Oct 2010 00:37:51 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: > > that is the means by which interested *serious* > contributors can decide if they want to help out, or work on other > open source projects. > Right. Let us know once it's available on bitbucket or github. On Tue, Oct 26, 2010 at 12:32 AM, Rajeev J Sebastian < rajeev.sebastian at gmail.com> wrote: > On Mon, Oct 25, 2010 at 11:48 PM, Dark Seid wrote: > >> > >> so only very serious people need approach. > >> > > I could be stating the obvious here, but I suspect that the kind of > people > > you're looking for will only contribute to an OSS project if it's got > great > > code or solves a problem in an interesting/effective way or both. Nobody > can > > figure this out *before* you open source it, so you can't expect people > to > > figure out up-front how serious they will be about contributing. > > Yes, you were stating the obvious. Someone might be serious about > contributing, if for e.g., they have time on their hands, experience > in developing quality products, and the will to spend it effectively > towards a project, which ultimately may not pay off financially (since > it is open source). In this case, I'm willing to demo the system and > show them the code; that is the means by which interested *serious* > contributors can decide if they want to help out, or work on other > open source projects. > > Loose statements like "we will help to improve it" is not a sign of a > serious contributor, in fact probably the opposite. > > Regards > Rajeev J Sebastian > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From rajeev.sebastian at gmail.com Mon Oct 25 21:14:21 2010 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Tue, 26 Oct 2010 00:44:21 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: On Tue, Oct 26, 2010 at 12:37 AM, Dark Seid wrote: >> >> that is the means by which interested *serious* >> contributors can decide if they want to help out, or work on other >> open source projects. >> > Right. Let us know once it's available on bitbucket or github. OK. Will do. Kthxbye. Regards Rajeev J Sebastian From lawgon at au-kbc.org Tue Oct 26 06:50:37 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 26 Oct 2010 10:20:37 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1288009806.2261.262.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: <1288068637.2261.276.camel@localhost> On Mon, 2010-10-25 at 18:00 +0530, Kenneth Gonsalves wrote: > On Mon, 2010-10-25 at 17:51 +0530, Rajeev J Sebastian wrote: > > I'm currently developing a task/issue management system; Django > based. > > Currently I havent made it open source (need to improve further > before > > I do that), but I'm using it in production. > > open source it and we can help to improve it am serious about this - nothing like having a django based issue tracker. And for an open source project there is no need to wait for improvements before releasing it. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Tue Oct 26 06:54:34 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 26 Oct 2010 10:24:34 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: <1288068874.2261.277.camel@localhost> On Mon, 2010-10-25 at 23:22 +0530, Rajeev J Sebastian wrote: > On Mon, Oct 25, 2010 at 6:00 PM, Kenneth Gonsalves > wrote: > > On Mon, 2010-10-25 at 17:51 +0530, Rajeev J Sebastian wrote: > >> I'm currently developing a task/issue management system; Django > based. > >> Currently I havent made it open source (need to improve further > before > >> I do that), but I'm using it in production. > > > > open source it and we can help to improve it > > Who exactly is 'we'? I and my team are definite - I am sure a lot of django guys on this list will also pitch in. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Tue Oct 26 06:56:47 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 26 Oct 2010 10:26:47 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> Message-ID: <1288069007.2261.278.camel@localhost> On Tue, 2010-10-26 at 00:05 +0530, Vishal wrote: > Also, if you its possible to shell out some money pay money for software?? me??? -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Tue Oct 26 07:00:47 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 26 Oct 2010 10:30:47 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> Message-ID: <1288069247.2261.282.camel@localhost> On Tue, 2010-10-26 at 00:32 +0530, Rajeev J Sebastian wrote: > Yes, you were stating the obvious. Someone might be serious about > contributing, if for e.g., they have time on their hands, experience > in developing quality products, and the will to spend it effectively > towards a project, which ultimately may not pay off financially (since > it is open source). In this case, I'm willing to demo the system and > show them the code; that is the means by which interested *serious* > contributors can decide if they want to help out, or work on other > open source projects. I understand your problem - in India there are a lot of people who 'volunteer' to help and wind up giving useless armchair advice and doing nothing > > Loose statements like "we will help to improve it" is not a sign of a > serious contributor, in fact probably the opposite. this is a chicken and egg situation - I for one will not contribute to a project that is not open source. And I certainly will not answer a question like: here is a demo - will you contribute if it is open source? If it is open source, with a decent license and if I need to add features or improve features to use it, I will try to contribute. Otherwise I may just use it. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Tue Oct 26 08:17:54 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 26 Oct 2010 11:47:54 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: References: <87r5flw1c7.fsf@gmail.com> Message-ID: On Mon, Oct 25, 2010 at 7:33 AM, Dhananjay Nene wrote: > On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim wrote: > > > > > > > Assuming that most of the people here are mostly python enthusiasts or > > learners, I'm wondering when you would *not* use Python. Let's not > > conflate this with Open Source/Closed Source etc. > > > > > Python is the language which has (what in business terms is coined as) the > right of first refusal. > > ie. evaluate something whether it really makes sense in python, and if not > in python then start exploring what else. > > The primary reasons which may encourage me to use a language other than > python are : > > a. Need for raw CPU power. Yes there are a few of such use cases. When > purely CPU driven and when you really really need the CPU badly (which is > probably less than 5% cases) python performance is really poor. > b. Need for high amounts of multithreading even while being largely CPU > bound. > > Yes - both situations can be handled by escaping to C from python, but I > would much rather handle these in Java (or languages based on JVM) rather > than C unless I am in a very constrained hardware situation. > > On a separate note I do believe as we start heading towards the 32 core > situation (say in 5 yrs time) - there better exist a better solution than > the GIL :) > > I think we should move from the thinking that concurrency <= threading and move over to better solutions in languages like Python which have better ways of solving the concurrency problem than actually having to create OS level threads. If you look at it differently, concurrency is the real problem and threading is just one approach to it which is kind of resource intensive and doesn't work great in Python due to the GIL. But instead of GIL bashing, one should look at other approaches to concurrency such as generator based co-operative "threading" and also look at numerous other concurrency libraries in Python before deciding that going the way of actual threads is his solution. The following article by Michele Simionato tries to drive home the same point. It is a good read, except the parts where he is trying to plug his concurrency library into it :) http://www.artima.com/weblogs/viewpost.jsp?thread=299551 Python should go the direction shown by languages such as Erlang which has true user-space multitasking with light-weight "processes". It already has the infrastructure for it with generators etc but support for true multitasking at user level should be part of the language rather than added on by third party libraries. Right now if one decides to explore Python concurrency, the scene is truly confusing and a little scary, since there are too many approaches out there which also share a lot of similarities. Hopefully the "futures" have something to offer here :) --Anand > > > -- > > ~noufal > > http://nibrahim.net.in > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -------------------------------------------------------- > blog: http://blog.dhananjaynene.com > twitter: http://twitter.com/dnene > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From dhananjay.nene at gmail.com Tue Oct 26 09:01:18 2010 From: dhananjay.nene at gmail.com (Dhananjay Nene) Date: Tue, 26 Oct 2010 12:31:18 +0530 Subject: [BangPypers] When *not* to use Python In-Reply-To: References: <87r5flw1c7.fsf@gmail.com> Message-ID: On Tue, Oct 26, 2010 at 11:47 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Mon, Oct 25, 2010 at 7:33 AM, Dhananjay Nene >wrote: > > > On Wed, Oct 20, 2010 at 4:57 PM, Noufal Ibrahim > wrote: > > > > > > > > > > > Assuming that most of the people here are mostly python enthusiasts or > > > learners, I'm wondering when you would *not* use Python. Let's not > > > conflate this with Open Source/Closed Source etc. > > > > > > > > Python is the language which has (what in business terms is coined as) > the > > right of first refusal. > > > > ie. evaluate something whether it really makes sense in python, and if > not > > in python then start exploring what else. > > > > The primary reasons which may encourage me to use a language other than > > python are : > > > > a. Need for raw CPU power. Yes there are a few of such use cases. When > > purely CPU driven and when you really really need the CPU badly (which is > > probably less than 5% cases) python performance is really poor. > > b. Need for high amounts of multithreading even while being largely CPU > > bound. > > > > Yes - both situations can be handled by escaping to C from python, but I > > would much rather handle these in Java (or languages based on JVM) rather > > than C unless I am in a very constrained hardware situation. > > > > On a separate note I do believe as we start heading towards the 32 core > > situation (say in 5 yrs time) - there better exist a better solution than > > the GIL :) > > > > > I think we should move from the thinking that concurrency <= threading > and move over to better solutions in languages like Python which have > better ways of solving the concurrency problem than actually having to > create OS level threads. > Threading is not the only solution to address concurrency but it is a valid one. The only issue I have with the statement above is that it seems to suggest that the move will address all use cases. It simply will not. At the same time I do agree that imagining threading to be the one and only solution to address concurrency is equally inadvisable. > > If you look at it differently, concurrency is the real problem and > threading > is just one approach to it which is kind of resource intensive and doesn't > work great in Python due to the GIL. But instead of GIL bashing, one > should > look at other approaches to concurrency such as generator based > co-operative > "threading" and also look at numerous other concurrency libraries in > Python > before deciding that going the way of actual threads is his solution. > Here's an example of what I had done once for an extremely extremely high performance application (million+ financial transactions per hour). There were layers of caches (with some cache coordination to ensure consistency). It was the high speed caches and cache access and which really helped achieve that performance. And that was possible because I had a very large number of threads sharing some of the caches (some caches were thread level). I cannot imagine making such an application work in a multi process environment. While I did not evaluate cooperative threading, I suspect that would also introduce its own overheads. When one really really needs threads, GIL sucks. What I am saying is that GIL bashing is not unreasonable given the context of specific use cases (we were discussing situations where one would prefer to not use python). > > Python should go the direction shown by languages such as Erlang which has > true user-space multitasking with light-weight "processes". It already has > the infrastructure for it with generators etc but support for true > multitasking > at user level should be part of the language rather than added on by > third party libraries. Right now if one decides to explore Python > concurrency, > the scene is truly confusing and a little scary, since there are too many > approaches out there which also share a lot of similarities. > > I agree (go down direction of light weight processes). > Hopefully the "futures" have something to offer here :) > > Once again agreed. > --Anand > > > > > > > > > > > > -- > > > ~noufal > > > http://nibrahim.net.in > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > -------------------------------------------------------- > > blog: http://blog.dhananjaynene.com > > twitter: http://twitter.com/dnene > > _______________________________________________ > > 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 > -- -------------------------------------------------------- blog: http://blog.dhananjaynene.com twitter: http://twitter.com/dnene From orsenthil at gmail.com Tue Oct 26 10:09:46 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 26 Oct 2010 13:39:46 +0530 Subject: [BangPypers] FW: [Python-Dev] Python bug week-end : 20-21 November Message-ID: <20101026080946.GA10037@remy> On Mon, Oct 25, 2010 at 11:03:37PM +0200, Antoine Pitrou wrote: > > Hello, > > The development team of the Python interpreter (a.k.a python-dev) is > organizing a bug week-end on Saturday 20th and Sunday 21st of November. > > We would like to encourage anyone who feels interested in participating > to give it a try. Contributing to Python is much less intimidating than > it sounds. You don't need to have previous experience with modifying > the Python source; in fact bug days offer a good opportunity to learn > the basics by asking questions and working on relatively simple bugs > (see "how to get prepared" below). And most core developers are actual > human beings! > > How it happens > -------------- > > The bug week-end will happen on the #python-dev IRC channel on the > Freenode network, where several core developers routinely hang out. No > physical meeting is scheduled as far as I know, but anyone is > encouraged to organize one and announce it on the official Python > channels such as this one. > > Participants (you!) join #python-dev and collaboratively go through the > Python issue tracker at http://bugs.python.org . From there, you can > provide patches and/or review existing patches. Also, you can help us > assess issues on any specific topic you have expertise in (the range of > topics touched in the stdlib is quite broad and it is more than likely > that the core developers' expertise is lacking in some of them). > > Or, if you feel shy, you can simply watch other people work and > slowly get more confident about participating yourself. > Development is public and lurkers are welcome. > > What you can work on > --------------------- > > Our expectation is that Python 3.2 beta 1 will have been released a > couple of days before the bug week-end and, therefore, one primary goal > is to polish the 3.2 branch for the following betas and the final > release. There are many issues to choose from on the bug tracker; any > bug fixes or documentation improvements will do. New features are > discouraged: they can't be checked in before the official 3.2 release. > > How to get prepared > ------------------- > > If you are a beginner with the Python codebase, you may want to read the > development guide available here (courtesy of Brian Curtin): > http://docs.pythonsprints.com/core_development/beginners.html > > There's a small practical guide to bug days/week-ends on the wiki: > http://wiki.python.org/moin/PythonBugDay > > And the development FAQ holds answers to generic development questions: > http://www.python.org/dev/faq/ > > You can also do all of the above during the bug week-end, of course. > Please, don't hesitate to ask us questions on the #python-dev channel. > > Regards > > Antoine. > > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/orsenthil%40gmail.com -- Senthil Back when I was a boy, it was 40 miles to everywhere, uphill both ways and it was always snowing. From sree at mahiti.org Tue Oct 26 13:34:57 2010 From: sree at mahiti.org (Sreekanth S Rameshaiah) Date: Tue, 26 Oct 2010 17:04:57 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1288068637.2261.276.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> <1288068637.2261.276.camel@localhost> Message-ID: On 26 October 2010 10:20, Kenneth Gonsalves wrote: > On Mon, 2010-10-25 at 18:00 +0530, Kenneth Gonsalves wrote: > > On Mon, 2010-10-25 at 17:51 +0530, Rajeev J Sebastian wrote: > > > I'm currently developing a task/issue management system; Django > > based. > > > Currently I havent made it open source (need to improve further > > before > > > I do that), but I'm using it in production. > > > > open source it and we can help to improve it > > am serious about this - nothing like having a django based issue > tracker. And for an open source project there is no need to wait for > improvements before releasing it. > +1. If it provides, anything better than what http://pinaxproject.com/ has. Or cannot we use Pinax and improve it? - sree > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sreekanth S Rameshaiah Executive Director Mahiti Infotech Pvt. Ltd. #583, Vyalikaval HBCS Layout, Nagawara, Veerannapalya, Bangalore, India - 560043 Phone: +91 80 4343 7373 Mobile: +91 98455 12611 www.mahiti.org From lorddaemon at gmail.com Tue Oct 26 14:16:53 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Tue, 26 Oct 2010 17:46:53 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1288069247.2261.282.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> <1288069247.2261.282.camel@localhost> Message-ID: > > this is a chicken and egg situation - I for one will not contribute to a > project that is not open source. And I certainly will not answer a > question like: here is a demo - will you contribute if it is open > source? > My point precisely. Thank you, Kenneth; in hindsight I did a rather bad job of trying to express myself. On Tue, Oct 26, 2010 at 10:30 AM, Kenneth Gonsalves wrote: > this is a chicken and egg situation - I for one will not contribute to a > project that is not open source. And I certainly will not answer a > question like: here is a demo - will you contribute if it is open > source? > From vid at svaksha.com Tue Oct 26 14:38:15 2010 From: vid at svaksha.com (=?UTF-8?B?4KWlIOCkuOCljeCkteCkleCljeCktyDgpaUg?=) Date: Tue, 26 Oct 2010 18:23:15 +0545 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1287557493.2261.43.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <1287557493.2261.43.camel@localhost> Message-ID: On Wed, Oct 20, 2010 at 12:36, Kenneth Gonsalves wrote: > I had stopped using trac once I shifted to bitbucket - but now there is > a requirement for a private system hosted on our own server. http://www.koffice.org/kplato/ -- Regards, vid ? http://svaksha.com From ishan.chhabra at gmail.com Tue Oct 26 20:54:13 2010 From: ishan.chhabra at gmail.com (ishan chhabra) Date: Wed, 27 Oct 2010 00:24:13 +0530 Subject: [BangPypers] Simplest way to do web programming in python. Message-ID: Hi all, I have a set of scripts in python that visualize a search result (produce an image) given a query. I will be building a flash based interface (to surf this visualized search space) to serve this over the web. I needed the most basic web framework (no mvc and all cause i think it's an overkill) that would help write a simple webapp that would interact with the flash frontend. I don't need any persistance of data. The results are computed in realtime. Please point me in some direction. Thanks. -- Regards, Ishan Chhabra 3rd year, B.tech Computer Science and engineering IIT Ropar From ishan.chhabra at gmail.com Tue Oct 26 21:21:48 2010 From: ishan.chhabra at gmail.com (ishan chhabra) Date: Wed, 27 Oct 2010 00:51:48 +0530 Subject: [BangPypers] Simplest way to do web programming in python. Message-ID: Hi all, I have a set of scripts in python that visualize a search result (produce an image) given a query. I will be building a flash based interface (to surf this visualized search space) to serve this over the web. I needed the most basic web framework (no mvc and all cause i think it's an overkill) that would help write a simple webapp that would interact with the flash frontend. I don't need any persistance of data. The results are computed in realtime. Please point me in some direction. Thanks. -- Regards, Ishan Chhabra 3rd year, B.tech Computer Science and engineering IIT Ropar From pradeep at btbytes.com Wed Oct 27 00:11:18 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Tue, 26 Oct 2010 18:11:18 -0400 Subject: [BangPypers] Simplest way to do web programming in python. In-Reply-To: References: Message-ID: On Tue, Oct 26, 2010 at 2:54 PM, ishan chhabra wrote: > Hi all, > I have a set of scripts in python that visualize a search result (produce an > image) given a query. I will be building a flash based interface (to surf > this visualized search space) to serve this over the web. I needed the most > basic web framework (no mvc and all cause i think it's an overkill) that > would help write a simple webapp that would interact with the flash > frontend. I don't need any persistance of data. The results are computed in > realtime. Please point me in some direction. Web Framework: Flask http://flask.pocoo.org/ Flash Integration: PyAMF http://pyamf.org/ +PG From avinashtm at gmail.com Wed Oct 27 09:14:48 2010 From: avinashtm at gmail.com (Avinash TM) Date: Wed, 27 Oct 2010 12:44:48 +0530 Subject: [BangPypers] rss feed generation and combining mutilple xml files Message-ID: *Rss feed generation : * The following is the webpage (http://localhost/buttoncheck.php) which i have created using simple php. ----------------------------------------------------------------------------- Please select from the following options to generate feeds Retail Transport HealthCare ColonK --------------------------------------------------------------------------- Now i have four xml files like Retail.xml , Transport.xml , HealthCare.xml , ColonK.xml So my problem is i don't know where to place the above xml files, and in the above php view if we select some combination and click on Generate feed button, it should memorize my selection and club the xml files (for ex: selection is Retail,Transport then it should club Retail.xml & Transport.xml files into one single file). So please anyone give a idea about how we can do it. Whether it need any Python script to club two files. -Avinash 90 36 35 2341 From abpillai at gmail.com Wed Oct 27 09:43:35 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 27 Oct 2010 13:13:35 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: <1288068637.2261.276.camel@localhost> References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <87fww1xonu.fsf@gmail.com> <1287567160.2261.48.camel@localhost> <1287990655.2261.249.camel@localhost> <1288009806.2261.262.camel@localhost> <1288068637.2261.276.camel@localhost> Message-ID: On Tue, Oct 26, 2010 at 10:20 AM, Kenneth Gonsalves wrote: > On Mon, 2010-10-25 at 18:00 +0530, Kenneth Gonsalves wrote: > > On Mon, 2010-10-25 at 17:51 +0530, Rajeev J Sebastian wrote: > > > I'm currently developing a task/issue management system; Django > > based. > > > Currently I havent made it open source (need to improve further > > before > > > I do that), but I'm using it in production. > > > > open source it and we can help to improve it > > am serious about this - nothing like having a django based issue > tracker. And for an open source project there is no need to wait for > improvements before releasing it. > It shouldn't be too difficult to implement one's own issue tracker on Django. Maybe I will give it a try one day. I expect 1-2 week of day-night hacking (coding) and it should be ready. Only one problem - I dont have the motivation to do one right now :) > -- > regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Thu Oct 28 03:18:24 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 28 Oct 2010 06:48:24 +0530 Subject: [BangPypers] task tracker and issue manager In-Reply-To: References: <1287551835.2261.29.camel@localhost> <1287552141.2261.30.camel@localhost> <1287557493.2261.43.camel@localhost> Message-ID: <1288228704.2261.336.camel@localhost> On Tue, 2010-10-26 at 18:23 +0545, ? ?????? ? wrote: > On Wed, Oct 20, 2010 at 12:36, Kenneth Gonsalves > wrote: > > I had stopped using trac once I shifted to bitbucket - but now there > is > > a requirement for a private system hosted on our own server. > > http://www.koffice.org/kplato/ I had asked for an online webapp written in python (at least I think I did) -- regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Thu Oct 28 15:31:18 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 28 Oct 2010 19:01:18 +0530 Subject: [BangPypers] Simplest way to do web programming in python. In-Reply-To: (ishan chhabra's message of "Wed, 27 Oct 2010 00:24:13 +0530") References: Message-ID: <87eibatpeh.fsf@gmail.com> On Wed, Oct 27 2010, ishan chhabra wrote: > Hi all, > I have a set of scripts in python that visualize a search result (produce an > image) given a query. I will be building a flash based interface (to surf > this visualized search space) to serve this over the web. I needed the most > basic web framework (no mvc and all cause i think it's an overkill) that > would help write a simple webapp that would interact with the flash > frontend. I don't need any persistance of data. The results are computed in > realtime. Please point me in some direction. > Thanks. If it's lightweight and something you just want to get out of your hair, I'd use CGI. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Thu Oct 28 15:50:00 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Thu, 28 Oct 2010 09:50:00 -0400 Subject: [BangPypers] Simplest way to do web programming in python. In-Reply-To: <87eibatpeh.fsf@gmail.com> References: <87eibatpeh.fsf@gmail.com> Message-ID: On Thu, Oct 28, 2010 at 9:31 AM, Noufal Ibrahim wrote: > On Wed, Oct 27 2010, ishan chhabra wrote: > >> Hi all, >> I have a set of scripts in python that visualize a search result (produce an >> image) given a query. I will be building a flash based interface (to surf >> this visualized search space) to serve this over the web. I needed the most >> basic web framework (no mvc and all cause i think it's an overkill) that >> would help write a simple webapp that would interact with the flash >> frontend. I don't need any persistance of data. The results are computed in >> realtime. Please point me in some direction. >> Thanks. > > If it's lightweight and something you just want to get out of your hair, > I'd use CGI. I'd strongly recommend against CGI. There is no practical reasons to do CGI programming in 2010. +PG From gopalakrishnan.subramani at gmail.com Sat Oct 30 18:52:56 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Sat, 30 Oct 2010 22:22:56 +0530 Subject: [BangPypers] ZeroMQ & Python Message-ID: Anybody had experience in using ZeroMQ? I heard that AMQP has flaw in the design through news posting. When I want to make independent applications who works based on message queue, it is worth considering ZeroMQ? Regards, Krish From pradeep at btbytes.com Sat Oct 30 19:17:02 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Sat, 30 Oct 2010 13:17:02 -0400 Subject: [BangPypers] ZeroMQ & Python In-Reply-To: References: Message-ID: On Sat, Oct 30, 2010 at 12:52 PM, Gopalakrishnan Subramani wrote: > Anybody had experience in using ZeroMQ? I heard that AMQP has flaw in the > design through news posting. When I want to make independent applications > who works based on message queue, it is worth considering ZeroMQ? I am using ZeroMQ. But, without knowing what is that you want to do with Message Queues, it is difficult to argue for or against ZMQ/AMQP. ZeroMQ API is very simple and zeromq itself is trivial to setup (No erlang dependency like RabbitMQ etc., it can be installed with standard ./configure && make && make install ). Why don't you try a scaled downprototype of your app and share the findings. I could not have used other MQs like RabbitMQ because of hardware limitations. I'm using ZMQ (XREQ/XREP) to queue up read/write message to a hardware device. +PG From gopalakrishnan.subramani at gmail.com Sat Oct 30 19:54:59 2010 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Sat, 30 Oct 2010 23:24:59 +0530 Subject: [BangPypers] ZeroMQ & Python In-Reply-To: References: Message-ID: Thank you for detail. I want to use the queuing service for my aggregator platform where there are set of applications running on different machines and I need to send some tasks to perform. The tasks could be re-index the search db or remove an entry from all the data stores (cache, MySqlDB, Redis and Tyrant). I had bad experience with RabbitMQ when I used it along with celery project. When the system fails some times, there seems to be error and the error messages written to the dump and we need to kill some processes and reinstall RabbitMQ. I read that ZeroMQ doesn't support persistent. What is the good way to handle the persistent in ZeroMQ? Regards, Krish On Sat, Oct 30, 2010 at 10:47 PM, Pradeep Gowda wrote: > On Sat, Oct 30, 2010 at 12:52 PM, Gopalakrishnan Subramani > wrote: > > Anybody had experience in using ZeroMQ? I heard that AMQP has flaw in the > > design through news posting. When I want to make independent applications > > who works based on message queue, it is worth considering ZeroMQ? > > I am using ZeroMQ. > But, without knowing what is that you want to do with Message Queues, it is > difficult to argue for or against ZMQ/AMQP. > > ZeroMQ API is very simple and zeromq itself is trivial to setup > (No erlang dependency like RabbitMQ etc., > it can be installed with standard ./configure && make && make install ). > Why don't you try a scaled downprototype of your app and share the > findings. > > I could not have used other MQs like RabbitMQ because of hardware > limitations. > I'm using ZMQ (XREQ/XREP) to queue up read/write message to a hardware > device. > > +PG > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From avinashtm at gmail.com Sun Oct 31 12:42:12 2010 From: avinashtm at gmail.com (Avinash TM) Date: Sun, 31 Oct 2010 17:12:12 +0530 Subject: [BangPypers] Access xml file form python script Message-ID: Hi All, I have created a simple xml document i.e., preferences.xml as follows Cricket Now i want to access the above data from a python script. I gone through some websites. But not getting actual idea. Should i use any data structures ( Lists, Dictionary, Tuples) in my python script. Can anybody help me Thanks & Regards Avinash From noufal at gmail.com Sun Oct 31 14:17:40 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 31 Oct 2010 18:47:40 +0530 Subject: [BangPypers] Access xml file form python script In-Reply-To: (Avinash TM's message of "Sun, 31 Oct 2010 17:12:12 +0530") References: Message-ID: <871v767b7v.fsf@gmail.com> On Sun, Oct 31 2010, Avinash TM wrote: > Hi All, > > I have created a simple xml document i.e., preferences.xml as follows > > > > > Cricket > > > > > > [...] The elementree module can help you parse this. Docs available here http://docs.python.org/library/xml.etree.elementtree.html However, this looks like configuration options of some kind so you might be better off using the .ini file format and ConfigParser module http://docs.python.org/library/configparser.html -- ~noufal http://nibrahim.net.in From thesujit at gmail.com Sun Oct 31 14:29:24 2010 From: thesujit at gmail.com (Sujit Ghosal) Date: Sun, 31 Oct 2010 18:59:24 +0530 Subject: [BangPypers] Access xml file form python script In-Reply-To: <871v767b7v.fsf@gmail.com> References: <871v767b7v.fsf@gmail.com> Message-ID: Hi Avinash, Expat module can be used to fetch the elements out of the XML document. Hope that helps. - Sujit On Sun, Oct 31, 2010 at 6:47 PM, Noufal Ibrahim wrote: > On Sun, Oct 31 2010, Avinash TM wrote: > > > Hi All, > > > > I have created a simple xml document i.e., preferences.xml as follows > > > > > > > > > > Cricket > > > > > > > > > > > > > > [...] > > The elementree module can help you parse this. Docs available here > http://docs.python.org/library/xml.etree.elementtree.html > > However, this looks like configuration options of some kind so you might > be better off using the .ini file format and ConfigParser module > http://docs.python.org/library/configparser.html > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From pradeep at btbytes.com Sun Oct 31 20:24:18 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Sun, 31 Oct 2010 15:24:18 -0400 Subject: [BangPypers] Access xml file form python script In-Reply-To: References: Message-ID: On Sun, Oct 31, 2010 at 7:42 AM, Avinash TM wrote: > Hi All, > > I have created a simple xml document i.e., preferences.xml as follows > > > > ? > ? Cricket > ? > ? ? > > ? > ? > This looks like xml generated by a Microsoft product, and not by/for a human.. How is this better than: Why create child nodes when attributes are sufficient? +PG